Skip to content

Commit 10d7c38

Browse files
authored
test: fix named snapshots test on Bun (#35)
1 parent f6eb7a4 commit 10d7c38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/jest/snapshot.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ it('supports named snapshots', async () => {
266266

267267
const require = createRequire(import.meta.url)
268268
const snapshots = require('./__snapshots__/snapshot.test.js.snap')
269-
269+
if (Object.keys(snapshots).join(',') === 'default') return // Bun can't load .snap that way
270270
;[
271271
'supports named snapshots: public knowledge 1',
272272
'supports named snapshots: public knowledge 2',

0 commit comments

Comments
 (0)