Skip to content

Commit e0b814b

Browse files
committed
Revert "update expectation to reflect error change"
This reverts commit c45afea.
1 parent c45afea commit e0b814b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

__e2e__/config.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ 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).toContain('Cannot require() ES Module');
199+
expect(stdout).toMatch(
200+
'ReferenceError: require is not defined in ES module scope, you can use import instead',
201+
);
200202
});
201203

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

0 commit comments

Comments
 (0)