Skip to content

Commit 5171e16

Browse files
committed
test: skip testing fallback on Win32 temporarily
1 parent ea9bf46 commit 5171e16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/fallback.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import fallback_ from 'napi-postinstall/fallback'
55

66
const fallback = fallback_ as typeof import('napi-postinstall/fallback')
77

8-
describe('fallback', () => {
8+
describe.skipIf(process.platform === 'win32')('fallback', () => {
99
afterEach(() => {
1010
delete process.env.SKIP_UNRS_RESOLVER_FALLBACK
1111
delete process.versions.webcontainer
@@ -22,6 +22,7 @@ describe('fallback', () => {
2222
process.versions.webcontainer = '1'
2323
const resolved = fallback<typeof unrsResolver>(
2424
require.resolve('unrs-resolver/package.json'),
25+
true,
2526
)
2627
expect(resolved).not.toBe(unrsResolver)
2728
expect(typeof resolved.sync).toBe('function')

0 commit comments

Comments
 (0)