diff --git a/crates/fervid_napi/__tests__/__snapshots__/defineExpose.spec.ts.snap b/crates/fervid_napi/__tests__/__snapshots__/defineExpose.spec.ts.snap new file mode 100644 index 0000000..0d46524 --- /dev/null +++ b/crates/fervid_napi/__tests__/__snapshots__/defineExpose.spec.ts.snap @@ -0,0 +1,31 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[` +`) + assertCode(content) + // should remove defineOptions import and call + expect(content).not.toMatch('defineExpose') + // should generate correct setup signature + expect(content).toMatch(`setup (__props, { expose: __expose }) {`) + // should replace callee + expect(content).toMatch(` + __expose({ + foo: 123 + })`) +}) + +test(' + + `) + assertCode(content) +})