File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1046,7 +1046,7 @@ describe('function helpers', () => {
1046
1046
await moveNextDist ( )
1047
1047
await nextRuntime . onBuild ( defaultArgs )
1048
1048
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 ( )
1050
1050
} )
1051
1051
1052
1052
// TODO: `dependencies` references files inside the <root>/node_modules directory which isn't accessible in moveNextDist
@@ -1055,8 +1055,8 @@ describe('function helpers', () => {
1055
1055
await moveNextDist ( )
1056
1056
await nextRuntime . onBuild ( defaultArgs )
1057
1057
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 ( )
1060
1060
} )
1061
1061
} )
1062
1062
} )
You can’t perform that action at this time.
0 commit comments