0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00

fix some TS compilation errors (#6939)

This commit is contained in:
André Alves 2023-05-01 11:41:09 -03:00 committed by GitHub
parent a98df9374d
commit 8ed3270bd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 0 additions and 14 deletions

View file

@ -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() {

View file

@ -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

View file

@ -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() {

View file

@ -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,

View file

@ -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)),