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:
parent
a98df9374d
commit
8ed3270bd0
5 changed files with 0 additions and 14 deletions
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)),
|
||||
|
|
Loading…
Reference in a new issue