Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/sharp-days-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@react-native-documents/picker': patch
---

fix: jest setup warnings from trying to reading commonjs module
5 changes: 1 addition & 4 deletions packages/document-picker/jest/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ function mockFactory() {
jest.mock('../src/spec/NativeDocumentPicker', () => mockFactory())
// the following are for jest testing outside of the library, where the paths are different
// alternative is to use moduleNameMapper in user space
const mockModulePaths = [
'../../../lib/commonjs/spec/NativeDocumentPicker',
'../../../lib/module/spec/NativeDocumentPicker',
]
const mockModulePaths = ['../../../lib/module/spec/NativeDocumentPicker']
mockModulePaths.forEach((path) => {
try {
require.resolve(path)
Expand Down