diff --git a/packages/vite-plugin-checker/__tests__/e2e/Sandbox/Sandbox.ts b/packages/vite-plugin-checker/__tests__/e2e/Sandbox/Sandbox.ts index 1a9d82c5..a11d8576 100644 --- a/packages/vite-plugin-checker/__tests__/e2e/Sandbox/Sandbox.ts +++ b/packages/vite-plugin-checker/__tests__/e2e/Sandbox/Sandbox.ts @@ -115,13 +115,13 @@ export async function waitForHmrOverlay(): Promise< const element = await page.waitForSelector('vite-plugin-checker-error-overlay', { state: 'attached', }) - return element + return element as any } export async function getHmrOverlay(): Promise | null> { const dom = await page.$('vite-plugin-checker-error-overlay') if (dom) console.log('found vite-plugin-checker-error-overlay') - return dom + return dom as any } export async function getHmrOverlayText( diff --git a/playground/vue3-vue-tsc/__tests__/__snapshots__/test.spec.ts.snap b/playground/vue3-vue-tsc/__tests__/__snapshots__/test.spec.ts.snap new file mode 100644 index 00000000..2913d7c6 --- /dev/null +++ b/playground/vue3-vue-tsc/__tests__/__snapshots__/test.spec.ts.snap @@ -0,0 +1,39 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`vue3-vue-tsc serve get initial error and subsequent error 1`] = `"[{\\"checkerId\\":\\"TypeScript\\",\\"frame\\":\\" 1 | /n 5 |/n 6 |