test: run suite through isolated mock runner

This commit is contained in:
YeonGyu-Kim
2026-05-12 15:30:45 +09:00
parent cde14b5e37
commit 4150092e9a
5 changed files with 29 additions and 6 deletions
+11
View File
@@ -0,0 +1,11 @@
import { describe, expect, test } from "bun:test"
describe("test script isolation", () => {
test("#given mock.module tests in the suite #then bun run test uses the isolated CI runner", async () => {
//#given
const packageJson = await Bun.file("package.json").json()
//#then
expect(packageJson.scripts.test).toBe("bun run script/run-ci-tests.ts")
})
})