(src: string, options?: Partial<SFCScriptCompileOptions>)
| 4 | |
| 5 | describe('sfc hoist static', () => { |
| 6 | function compile(src: string, options?: Partial<SFCScriptCompileOptions>) { |
| 7 | return compileSFCScript(src, { |
| 8 | inlineTemplate: true, |
| 9 | hoistStatic: true, |
| 10 | ...options, |
| 11 | }) |
| 12 | } |
| 13 | |
| 14 | test('should hoist literal value', () => { |
| 15 | const code = ` |
no test coverage detected