We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e91b452 commit 0dc492aCopy full SHA for 0dc492a
2 files changed
.changeset/sharp-days-sort.md
@@ -0,0 +1,5 @@
1
+---
2
+'@react-native-documents/picker': patch
3
4
+
5
+fix: jest setup warnings from trying to reading commonjs module
packages/document-picker/jest/setup.ts
@@ -57,10 +57,7 @@ function mockFactory() {
57
jest.mock('../src/spec/NativeDocumentPicker', () => mockFactory())
58
// the following are for jest testing outside of the library, where the paths are different
59
// alternative is to use moduleNameMapper in user space
60
-const mockModulePaths = [
61
- '../../../lib/commonjs/spec/NativeDocumentPicker',
62
- '../../../lib/module/spec/NativeDocumentPicker',
63
-]
+const mockModulePaths = ['../../../lib/module/spec/NativeDocumentPicker']
64
mockModulePaths.forEach((path) => {
65
try {
66
require.resolve(path)
0 commit comments