Skip to content

Commit 2a44106

Browse files
committed
test: add wasm case for detectModuleFormat
1 parent 9ae5629 commit 2a44106

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/unit/shared/utils/package-analysis.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ describe('detectModuleFormat', () => {
122122
}),
123123
).toBe('esm')
124124
})
125+
126+
it('detects WASM from main field', () => {
127+
expect(detectModuleFormat({ main: 'main.wasm' })).toBe('wasm')
128+
})
125129
})
126130

127131
describe('detectTypesStatus', () => {

0 commit comments

Comments
 (0)