scopeId.spec.ts 271 B

123456789
  1. import { compile } from '../src/compile'
  2. describe('scopeId compiler support', () => {
  3. test('should only work in module mode', () => {
  4. expect(() => {
  5. compile(``, { scopeId: 'test' })
  6. }).toThrow(`"scopeId" option is only supported in module mode`)
  7. })
  8. })