Skip to content

Commit 2da6c0e

Browse files
committed
chore: sorting...... heh
1 parent 3f646bc commit 2da6c0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/index.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ describe('function helpers', () => {
10461046
await moveNextDist()
10471047
await nextRuntime.onBuild(defaultArgs)
10481048
const dependencies = await getAllPageDependencies(constants.PUBLISH_DIR)
1049-
expect(dependencies.sort().map((dep) => normalizeChunkNames(relative(process.cwd(), dep)))).toMatchSnapshot()
1049+
expect(dependencies.map((dep) => normalizeChunkNames(relative(process.cwd(), dep))).sort()).toMatchSnapshot()
10501050
})
10511051

10521052
// TODO: `dependencies` references files inside the <root>/node_modules directory which isn't accessible in moveNextDist
@@ -1055,8 +1055,8 @@ describe('function helpers', () => {
10551055
await moveNextDist()
10561056
await nextRuntime.onBuild(defaultArgs)
10571057
const dependencies = await getAllPageDependencies(constants.PUBLISH_DIR)
1058-
const filesExist = await Promise.all(dependencies.sort().map((dep) => pathExists(dep)))
1059-
expect(filesExist.every((exists) => exists)).toBeTruthy()
1058+
const filesExist = await Promise.all(dependencies.map((dep) => pathExists(dep)))
1059+
expect(filesExist.sort().every((exists) => exists)).toBeTruthy()
10601060
})
10611061
})
10621062
})

0 commit comments

Comments
 (0)