Skip to content

Commit 29487ff

Browse files
committed
update assertion
1 parent 70f5ff4 commit 29487ff

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

__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(/Cannot require\(\) 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)