Skip to content

Commit 0ed4acb

Browse files
committed
test: fix ESM-checking test
1 parent e65fde9 commit 0ed4acb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

__e2e__/config.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,7 @@ test('should fail if using require() in ES module in react-native.config.mjs', (
199199
'test-command-esm',
200200
]);
201201
expect(stderr).toMatch('error Failed to load configuration of your project');
202-
expect(stdout).toMatch(
203-
'ReferenceError: require is not defined in ES module scope, you can use import instead',
204-
);
202+
expect(stdout).toMatch('ES module');
205203
});
206204

207205
test('should fail if using require() in ES module with "type": "module" in package.json', () => {

0 commit comments

Comments
 (0)