Skip to content

Commit c45afea

Browse files
committed
update expectation to reflect error change
1 parent 1250fc8 commit c45afea

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
@@ -196,9 +196,7 @@ test('should fail if using require() in ES module in react-native.config.mjs', (
196196
'test-command-esm',
197197
]);
198198
expect(stderr).toMatch('error Failed to load configuration of your project');
199-
expect(stdout).toMatch(
200-
'ReferenceError: require is not defined in ES module scope, you can use import instead',
201-
);
199+
expect(stdout).toContain('Cannot require() ES Module');
202200
});
203201

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

0 commit comments

Comments
 (0)