test: added testing via a browser (puppeteer)

This commit is contained in:
2023-12-03 10:42:51 +01:00
parent 2adfbee74b
commit e96c2248ee
27 changed files with 1281 additions and 123 deletions

View File

@@ -4,7 +4,7 @@ import test from "ava";
import { rollup } from "rollup";
import urlPlugin from "@rollup/plugin-url";
import {debugPrintOutput, getCode} from "../util/test.js";
import {debugPrintOutput, getCode} from "../util/index.ts";
import html from "../../src/index.ts";
@@ -37,7 +37,7 @@ test.serial('copied-assets', async (t) => {
}),
],
});
const code = await getCode(bundle, output, true);
const code = await getCode(bundle, output);
debugPrintOutput('copied-assets',code);
t.snapshot(code);
});
@@ -55,7 +55,7 @@ test.serial('inlined-assets', async (t) => {
}),
]
});
const code = await getCode(bundle, output, true);
const code = await getCode(bundle, output);
debugPrintOutput('inlined-assets',code);
t.snapshot(code);
});