Skip to content

Commit ef5c59c

Browse files
Mhp23vonovak
andauthored
fix(tests): avoid a "Unable to resolve" warning (#1435)
* chore: removing the commonjs path from mockModulePaths * chore: prettier --------- Co-authored-by: Vojtech Novak <vonovak@gmail.com>
1 parent 487a2d9 commit ef5c59c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

jest/setup.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,7 @@ jest.mock('../src/spec/NativeGoogleSignin', () => mockFactory());
8383

8484
// the following are for jest testing outside of the library, where the paths are different
8585
// alternative is to use moduleNameMapper in user space
86-
const mockModulePaths = [
87-
'../../../lib/commonjs/spec/NativeGoogleSignin',
88-
'../../../lib/module/spec/NativeGoogleSignin',
89-
];
86+
const mockModulePaths = ['../../../lib/module/spec/NativeGoogleSignin'];
9087
mockModulePaths.forEach((path) => {
9188
try {
9289
require.resolve(path);

0 commit comments

Comments
 (0)