test: refactoring tests
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user