Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions __e2e__/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,7 @@ test('should fail if using require() in ES module in react-native.config.mjs', (
'test-command-esm',
]);
expect(stderr).toMatch('error Failed to load configuration of your project');
expect(stdout).toMatch(
'ReferenceError: require is not defined in ES module scope, you can use import instead',
);
expect(stdout).toMatch('Cannot require() ES Module');
});

test('should fail if using require() in ES module with "type": "module" in package.json', () => {
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"@babel/preset-typescript": "^7.3.3",
"@react-native-community/eslint-config": "^3.2.0",
"@types/glob": "^7.1.1",
"@types/jest": "^26.0.15",
"@types/jest": "^27.5.2",
"@types/node": "^18.0.0",
"babel-jest": "^26.6.2",
"babel-jest": "^27.5.1",
"babel-plugin-module-resolver": "^3.2.0",
"chalk": "^4.1.2",
"chokidar": "^3.3.1",
Expand All @@ -43,8 +43,8 @@
"execa": "^5.0.0",
"fast-glob": "^3.3.2",
"husky": "^8.0.2",
"jest": "^26.6.2",
"jest-circus": "^26.6.2",
"jest": "^27.5.1",
"jest-circus": "^27.5.1",
"jest-snapshot-serializer-raw": "^1.1.0",
"lerna": "^7.1.3",
"lint-staged": "^13.1.0",
Expand Down
Loading
Loading