Skip to content

Commit 9a7db65

Browse files
authored
fix: update tests for jest@29 (#78)
1 parent b1e2145 commit 9a7db65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"eslint-plugin-node": "^11.0.0",
3838
"eslint-plugin-promise": "^4.0.1",
3939
"eslint-plugin-standard": "^4.0.0",
40-
"jest": "^24.9.0",
40+
"jest": "^29.5.0",
4141
"jest-plugin-fs": "^2.9.0",
4242
"jsdoc-to-markdown": "^5.0.3",
4343
"mock-stdin": "^1.0.0",

test/_helpers/globals.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const fs = require.requireActual('fs')
1+
const fs = jest.requireActual('fs')
22

33
// mock fs so no tests accidently write to disk
44
jest.mock('fs', () => require('jest-plugin-fs/mock'))

0 commit comments

Comments
 (0)