File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
packages/document-picker/jest Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @react-native-documents/picker ' : patch
3+ ---
4+
5+ fix: jest setup warnings from trying to reading commonjs module
Original file line number Diff line number Diff line change @@ -57,10 +57,7 @@ function mockFactory() {
5757jest . 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' ]
6461mockModulePaths . forEach ( ( path ) => {
6562 try {
6663 require . resolve ( path )
You can’t perform that action at this time.
0 commit comments