From 8ed3270bd07a2e39982b36e010bc521093f9e7b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Alves?= <71379045+andremralves@users.noreply.github.com> Date: Mon, 1 May 2023 11:41:09 -0300 Subject: [PATCH] fix some TS compilation errors (#6939) --- .../netlify/test/edge-functions/dynamic-import.test.js | 3 --- .../netlify/test/edge-functions/edge-basic.test.ts | 3 --- .../integrations/netlify/test/edge-functions/prerender.test.ts | 3 --- .../netlify/test/edge-functions/root-dynamic.test.ts | 3 --- .../integrations/netlify/test/edge-functions/test-utils.ts | 2 -- 5 files changed, 14 deletions(-) diff --git a/packages/integrations/netlify/test/edge-functions/dynamic-import.test.js b/packages/integrations/netlify/test/edge-functions/dynamic-import.test.js index 82961ab8b..ff4adb490 100644 --- a/packages/integrations/netlify/test/edge-functions/dynamic-import.test.js +++ b/packages/integrations/netlify/test/edge-functions/dynamic-import.test.js @@ -1,9 +1,6 @@ -// @ts-ignore import { runBuild, runApp } from './test-utils.ts'; -// @ts-ignore import { assertEquals, assert, DOMParser } from './deps.ts'; -// @ts-ignore Deno.test({ name: 'Dynamic imports', async fn() { diff --git a/packages/integrations/netlify/test/edge-functions/edge-basic.test.ts b/packages/integrations/netlify/test/edge-functions/edge-basic.test.ts index 2e3ae4d5f..ecdbda4e0 100644 --- a/packages/integrations/netlify/test/edge-functions/edge-basic.test.ts +++ b/packages/integrations/netlify/test/edge-functions/edge-basic.test.ts @@ -1,9 +1,6 @@ -// @ts-expect-error import { runBuild } from './test-utils.ts'; -// @ts-expect-error import { assertEquals, assert, DOMParser } from './deps.ts'; -// @ts-expect-error Deno.env.set('SECRET_STUFF', 'secret'); // @ts-expect-error diff --git a/packages/integrations/netlify/test/edge-functions/prerender.test.ts b/packages/integrations/netlify/test/edge-functions/prerender.test.ts index 1a272b101..5d858ef73 100644 --- a/packages/integrations/netlify/test/edge-functions/prerender.test.ts +++ b/packages/integrations/netlify/test/edge-functions/prerender.test.ts @@ -1,9 +1,6 @@ -// @ts-expect-error import { runBuild } from './test-utils.ts'; -// @ts-expect-error import { assertEquals } from './deps.ts'; -// @ts-expect-error Deno.test({ name: 'Prerender', async fn() { diff --git a/packages/integrations/netlify/test/edge-functions/root-dynamic.test.ts b/packages/integrations/netlify/test/edge-functions/root-dynamic.test.ts index 8e05b05de..c853e2bfc 100644 --- a/packages/integrations/netlify/test/edge-functions/root-dynamic.test.ts +++ b/packages/integrations/netlify/test/edge-functions/root-dynamic.test.ts @@ -1,9 +1,6 @@ -// @ts-expect-error import { runBuild } from './test-utils.ts'; -// @ts-expect-error import { assertEquals, assert, DOMParser } from './deps.ts'; -// @ts-expect-error Deno.test({ // TODO: debug why build cannot be found in "await import" ignore: true, diff --git a/packages/integrations/netlify/test/edge-functions/test-utils.ts b/packages/integrations/netlify/test/edge-functions/test-utils.ts index 7ba078a3a..2025c45b3 100644 --- a/packages/integrations/netlify/test/edge-functions/test-utils.ts +++ b/packages/integrations/netlify/test/edge-functions/test-utils.ts @@ -1,9 +1,7 @@ -// @ts-expect-error import { fromFileUrl, readableStreamFromReader } from './deps.ts'; const dir = new URL('./', import.meta.url); export async function runBuild(fixturePath: string) { - // @ts-expect-error let proc = Deno.run({ cmd: ['node', '../../../../../../astro/astro.js', 'build', '--silent'], cwd: fromFileUrl(new URL(fixturePath, dir)),