Skip to content

Commit 70f5ff4

Browse files
committed
Revert "test: fix ESM-checking test"
This reverts commit 0ed4acb.
1 parent 3647592 commit 70f5ff4

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
@@ -199,7 +199,9 @@ 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('ES module');
202+
expect(stdout).toMatch(
203+
'ReferenceError: require is not defined in ES module scope, you can use import instead',
204+
);
203205
});
204206

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

0 commit comments

Comments
 (0)