Skip to content

Commit e7f26b6

Browse files
committed
fix: remove commonjs require from jest/setup for document picker
1 parent e91b452 commit e7f26b6

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

packages/document-picker/jest/setup.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ function mockFactory() {
5757
jest.mock('../src/spec/NativeDocumentPicker', () => mockFactory())
5858
// the following are for jest testing outside of the library, where the paths are different
5959
// alternative is to use moduleNameMapper in user space
60-
const mockModulePaths = [
61-
'../../../lib/commonjs/spec/NativeDocumentPicker',
62-
'../../../lib/module/spec/NativeDocumentPicker',
63-
]
60+
const mockModulePaths = ['../../../lib/module/spec/NativeDocumentPicker']
6461
mockModulePaths.forEach((path) => {
6562
try {
6663
require.resolve(path)

0 commit comments

Comments
 (0)