chore: switch to jest for testing
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import {resolve, join, dirname} from "node:path";
|
||||
import {test, expect} from "@jest/globals";
|
||||
|
||||
import test from "ava";
|
||||
import { rollup } from "rollup";
|
||||
import {debugPrintOutput, getCode} from "../util/index.ts";
|
||||
|
||||
@@ -17,7 +17,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||
process.chdir(join(__dirname, 'fixtures'));
|
||||
|
||||
|
||||
test.serial('multi-entry', async (t) => {
|
||||
test('multi-entry', async () => {
|
||||
const bundle = await rollup({
|
||||
input: {
|
||||
['index']: 'index.html',
|
||||
@@ -30,7 +30,7 @@ test.serial('multi-entry', async (t) => {
|
||||
});
|
||||
const code = await getCode(bundle, output);
|
||||
debugPrintOutput('multi-entry',code);
|
||||
t.snapshot(code);
|
||||
expect(code).toMatchSnapshot();
|
||||
});
|
||||
|
||||
// TODO various parameters
|
||||
|
||||
Reference in New Issue
Block a user