test: refactoring tests

This commit is contained in:
2024-01-27 20:54:59 +01:00
parent 3e46055845
commit 1c55b894c9
7 changed files with 86 additions and 38 deletions

View File

@@ -12,7 +12,7 @@ import typescriptPlugin from "@rollup/plugin-typescript";
import replacePlugin from "@rollup/plugin-replace";
import html from "../../src/index.ts";
import serveTest from "../util/test-server.ts";
import serveTest from "../util/serve-test.ts";
@@ -30,6 +30,7 @@ const output= {
import {fileURLToPath} from "node:url";
import handlebars from "handlebars";
import {debugPrintOutput, getCode} from "../util/index.ts";
const __dirname = dirname(fileURLToPath(import.meta.url));
process.chdir(join(__dirname, 'fixtures'));
@@ -86,5 +87,8 @@ test.serial('web-bundle', async (t) => {
],
});
const generated = await bundle.generate(output);
// const code = await getCode(bundle, output);
// debugPrintOutput('jsx-web-app',code);
});