From e5152079a15291065f2cb55c4aecd95d9ea0c48c Mon Sep 17 00:00:00 2001 From: Kai Hao Date: Thu, 9 Mar 2023 16:10:23 +0800 Subject: [PATCH] Try to fix native unit tests --- test/native/jest.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/native/jest.config.js b/test/native/jest.config.js index 39e5e6fc6a593..452cbb0b05eff 100644 --- a/test/native/jest.config.js +++ b/test/native/jest.config.js @@ -39,7 +39,7 @@ module.exports = { // and add it first so https://github.com/facebook/react-native/blob/v0.60.0/Libraries/react-native/react-native-implementation.js#L324-L326 doesn't pick up the Platform npm module. moduleDirectories: [ '../../node_modules/react-native/Libraries/Utilities', - '../../node_modules', + 'node_modules', ], moduleNameMapper: { // Mock the CSS modules. See https://facebook.github.io/jest/docs/en/webpack.html#handling-static-assets