Skip to content

Commit 1679aff

Browse files
authored
test: sort setting before comparing to snapshot (#6047)
1 parent f59398f commit 1679aff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/build-info/src/node/get-build-info.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ test.skipIf(platform() === 'win32')('should retrieve the build info for providin
6868
const info = await getBuildInfo({ rootDir: fixture.cwd })
6969

7070
info.jsWorkspaces!.rootDir = '/cleaned-for-snapshot'
71+
info.settings = info.settings.sort((a, b) => (a.dist < b.dist ? -1 : 1))
7172
expect(info).toMatchSnapshot()
7273
})
7374

0 commit comments

Comments
 (0)