Skip to content

Commit 5954bd1

Browse files
committed
remove use of jest-plugin-fs
1 parent 9450d0a commit 5954bd1

2 files changed

Lines changed: 0 additions & 13 deletions

File tree

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
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
},

test/jest.setup.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,6 @@ const path = require('path')
55

66
jest.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

0 commit comments

Comments
 (0)