File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 "jest" : " ^29" ,
3636 "jest-haste-map" : " ^29.6.1" ,
3737 "jest-junit" : " ^16.0.0" ,
38- "jest-plugin-fs" : " ^2.9.0" ,
3938 "oclif" : " ^4.17.13" ,
4039 "stdout-stderr" : " ^0.1.9"
4140 },
Original file line number Diff line number Diff line change @@ -5,18 +5,6 @@ const path = require('path')
55
66jest . setTimeout ( 30000 )
77
8- // don't touch the real fs
9- const mockFs = require ( 'jest-plugin-fs/mock' )
10- jest . mock ( 'fs' , ( ) => mockFs )
11-
12- const oclifCorePackagePath = path . join ( __dirname , '../node_modules/@oclif/core/package.json' )
13- if ( fs . existsSync ( oclifCorePackagePath ) ) {
14- const oclifCorePackage = fs . readFileSync ( oclifCorePackagePath , 'utf8' )
15- const virtualPath = path . join ( process . cwd ( ) , 'node_modules/@oclif/core/package.json' )
16- const ffs = require ( 'jest-plugin-fs' ) . default
17- ffs . mock ( { [ virtualPath ] : oclifCorePackage } )
18- }
19-
208// clear env variables
219
2210// trap console log
You can’t perform that action at this time.
0 commit comments