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';
|
import { runBuild, runApp } from './test-utils.ts';
|
||||||
// @ts-ignore
|
|
||||||
import { assertEquals, assert, DOMParser } from './deps.ts';
|
import { assertEquals, assert, DOMParser } from './deps.ts';
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
Deno.test({
|
Deno.test({
|
||||||
name: 'Dynamic imports',
|
name: 'Dynamic imports',
|
||||||
async fn() {
|
async fn() {
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
// @ts-expect-error
|
|
||||||
import { runBuild } from './test-utils.ts';
|
import { runBuild } from './test-utils.ts';
|
||||||
// @ts-expect-error
|
|
||||||
import { assertEquals, assert, DOMParser } from './deps.ts';
|
import { assertEquals, assert, DOMParser } from './deps.ts';
|
||||||
|
|
||||||
// @ts-expect-error
|
|
||||||
Deno.env.set('SECRET_STUFF', 'secret');
|
Deno.env.set('SECRET_STUFF', 'secret');
|
||||||
|
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
// @ts-expect-error
|
|
||||||
import { runBuild } from './test-utils.ts';
|
import { runBuild } from './test-utils.ts';
|
||||||
// @ts-expect-error
|
|
||||||
import { assertEquals } from './deps.ts';
|
import { assertEquals } from './deps.ts';
|
||||||
|
|
||||||
// @ts-expect-error
|
|
||||||
Deno.test({
|
Deno.test({
|
||||||
name: 'Prerender',
|
name: 'Prerender',
|
||||||
async fn() {
|
async fn() {
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
// @ts-expect-error
|
|
||||||
import { runBuild } from './test-utils.ts';
|
import { runBuild } from './test-utils.ts';
|
||||||
// @ts-expect-error
|
|
||||||
import { assertEquals, assert, DOMParser } from './deps.ts';
|
import { assertEquals, assert, DOMParser } from './deps.ts';
|
||||||
|
|
||||||
// @ts-expect-error
|
|
||||||
Deno.test({
|
Deno.test({
|
||||||
// TODO: debug why build cannot be found in "await import"
|
// TODO: debug why build cannot be found in "await import"
|
||||||
ignore: true,
|
ignore: true,
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
// @ts-expect-error
|
|
||||||
import { fromFileUrl, readableStreamFromReader } from './deps.ts';
|
import { fromFileUrl, readableStreamFromReader } from './deps.ts';
|
||||||
const dir = new URL('./', import.meta.url);
|
const dir = new URL('./', import.meta.url);
|
||||||
|
|
||||||
export async function runBuild(fixturePath: string) {
|
export async function runBuild(fixturePath: string) {
|
||||||
// @ts-expect-error
|
|
||||||
let proc = Deno.run({
|
let proc = Deno.run({
|
||||||
cmd: ['node', '../../../../../../astro/astro.js', 'build', '--silent'],
|
cmd: ['node', '../../../../../../astro/astro.js', 'build', '--silent'],
|
||||||
cwd: fromFileUrl(new URL(fixturePath, dir)),
|
cwd: fromFileUrl(new URL(fixturePath, dir)),
|
||||||
|
|
Loading…
Reference in a new issue