Skip to content

Commit f342a22

Browse files
committed
chore: fix test on old Node
1 parent aaefe22 commit f342a22

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

test/index.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { relative } from 'path/posix'
1+
import { relative } from 'pathe'
22
import { getAllPageDependencies } from '../packages/runtime/src/templates/getPageResolver'
33

44
jest.mock('../packages/runtime/src/helpers/utils', () => {
@@ -9,17 +9,7 @@ jest.mock('../packages/runtime/src/helpers/utils', () => {
99
})
1010

1111
const Chance = require('chance')
12-
const {
13-
writeJSON,
14-
unlink,
15-
existsSync,
16-
readFileSync,
17-
copy,
18-
ensureDir,
19-
readJson,
20-
exists,
21-
pathExists,
22-
} = require('fs-extra')
12+
const { writeJSON, unlink, existsSync, readFileSync, copy, ensureDir, readJson, pathExists } = require('fs-extra')
2313
const path = require('path')
2414
const process = require('process')
2515
const os = require('os')

0 commit comments

Comments
 (0)