chore/port-solidtime-audit-fixes #1
@@ -1,4 +1,6 @@
|
|||||||
import { test, describe } from "node:test";
|
// Runs under vitest (the generators vitest include picks up lib/*.test.mjs);
|
||||||
|
// node:assert keeps the original assertion style.
|
||||||
|
import { test, describe } from "vitest";
|
||||||
import assert from "node:assert/strict";
|
import assert from "node:assert/strict";
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ export default defineConfig({
|
|||||||
test: {
|
test: {
|
||||||
globals: true,
|
globals: true,
|
||||||
environment: "node",
|
environment: "node",
|
||||||
include: ["*.test.ts", "lib/*.test.ts", "__tests__/*.test.ts"],
|
include: ["*.test.ts", "lib/*.test.{ts,mjs}", "__tests__/*.test.ts"],
|
||||||
clearMocks: true,
|
clearMocks: true,
|
||||||
restoreMocks: true,
|
restoreMocks: true,
|
||||||
// The core-package `*.e2e.test.ts` files each do a full `pnpm install`
|
// The core-package `*.e2e.test.ts` files each do a full `pnpm install`
|
||||||
|
|||||||
Reference in New Issue
Block a user