Skip to content

Commit

Permalink
test: sort setting before comparing to snapshot (#6047)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstork authored Feb 6, 2025
1 parent f59398f commit 1679aff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/build-info/src/node/get-build-info.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ test.skipIf(platform() === 'win32')('should retrieve the build info for providin
const info = await getBuildInfo({ rootDir: fixture.cwd })

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

Expand Down

0 comments on commit 1679aff

Please sign in to comment.