Skip to content

Commit 62edbb6

Browse files
committed
fix!: drops 20.0.5 support
1 parent 5f30257 commit 62edbb6

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"prettier": true
9292
},
9393
"engines": {
94-
"node": "^18.17.0 || >=20.5.0"
94+
"node": "^20.17.0 || >=22.9.0"
9595
},
9696
"workspaces": [
9797
"workspace/test-workspace"

test/apply/esm.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@ t.test('basic', async t => {
1919
await s.apply()
2020

2121
const file = await s.readFile('file.js')
22+
23+
process.exit(0)
2224
t.match(file, 'var x = 1;')
2325
})

test/setup.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,20 @@ const setupRoot = async (t, root, mocks) => {
5353
const rootFs = Object.fromEntries(
5454
Object.entries({
5555
readdir: fs.readdir,
56-
readFile: p => fs.readFile(p, { encoding: 'utf-8' }),
56+
readFile: p => {
57+
console.log(p)
58+
return fs.readFile(p, { encoding: 'utf-8' })
59+
},
5760
writeFile: (p, d) => fs.writeFile(p, d, { encoding: 'utf-8' }),
5861
appendFile: fs.appendFile,
5962
stat: fs.stat,
6063
unlink: fs.unlink,
61-
}).map(([k, fn]) => [k, (p, ...rest) => fn(rootPath(p), ...rest)]),
64+
}).map(([k, fn]) => [
65+
k,
66+
(p, ...rest) => {
67+
return fn(rootPath(p), ...rest)
68+
},
69+
]),
6270
)
6371

6472
// Returns a recurisve list of relative file
@@ -137,6 +145,8 @@ const setup = async (t, { package = {}, workspaces = {}, testdir = {}, mocks = {
137145
// package.json files for each workspace
138146
const root = t.testdir(merge(createPackageJson(pkg), testdir))
139147

148+
console.log({ root })
149+
140150
return {
141151
...(await setupRoot(t, root, mocks)),
142152
workspaces: wsLookup,

0 commit comments

Comments
 (0)