Skip to content

Commit

Permalink
Don't run Detox tests as part of normal Jest
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingItWrong committed Feb 29, 2024
1 parent 4245c40 commit 05e712d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,15 @@ async function initializeRN(answers) {
command('detox init -r jest');
});
await groupAsync('Configure Detox', async () => {
writeFile(
'jest.config.js',
dedent`
module.exports = {
preset: 'react-native',
modulePathIgnorePatterns: ['e2e'],
};
`
);
await modifyJson(
'package.json',
'.jest.modulePathIgnorePatterns = ["e2e"]'
Expand Down

0 comments on commit 05e712d

Please sign in to comment.