test(compiler-vapor): add scopeId test

This commit is contained in:
三咲智子 Kevin Deng 2024-06-05 04:36:07 +08:00
parent 598b55f1e8
commit b023b9b845
No known key found for this signature in database
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
import { compile } from '../src/compile'
describe('scopeId compiler support', () => {
test('should only work in module mode', () => {
expect(() => {
compile(``, { scopeId: 'test' })
}).toThrow(`"scopeId" option is only supported in module mode`)
})
})