diff --git a/crates/fervid_napi/__tests__/compileHelloWorld.spec.ts b/crates/fervid_napi/__tests__/compileHelloWorld.spec.ts index bf8e959..bb9ad6f 100644 --- a/crates/fervid_napi/__tests__/compileHelloWorld.spec.ts +++ b/crates/fervid_napi/__tests__/compileHelloWorld.spec.ts @@ -17,7 +17,7 @@ const compilerName = ref('fervid') ` test('should work', () => { - expect(compileSync(HELLO_WORLD)).toMatchInlineSnapshot(` + expect(compileSync(HELLO_WORLD).code).toMatchInlineSnapshot(` "import { ref } from 'vue'; import { createElementBlock as _createElementBlock, openBlock as _openBlock, toDisplayString as _toDisplayString } from "vue"; export default { @@ -36,7 +36,7 @@ test('should work', () => { " `) - expect(compileSync(HELLO_WORLD, { isProd: true })).toMatchInlineSnapshot(` + expect(compileSync(HELLO_WORLD, { isProd: true }).code).toMatchInlineSnapshot(` "import { ref } from 'vue'; import { createElementBlock as _createElementBlock, openBlock as _openBlock, toDisplayString as _toDisplayString } from "vue"; export default {