test: isolate migrate-legacy-plugin-entry.test.ts to prevent mock contamination

This commit is contained in:
YeonGyu-Kim
2026-04-04 21:32:52 +09:00
parent acfed926f8
commit aa7e2aa07f
@@ -1,12 +1,12 @@
/// <reference path="../../bun-test.d.ts" />
/// <reference path="../../../bun-test.d.ts" />
import { afterAll, afterEach, beforeEach, describe, expect, it, mock } from "bun:test"
import { mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs"
import { tmpdir } from "node:os"
import { join } from "node:path"
async function importFreshMigrationModule(): Promise<typeof import("./migrate-legacy-plugin-entry")> {
return import(`./migrate-legacy-plugin-entry?test=${Date.now()}-${Math.random()}`)
async function importFreshMigrationModule(): Promise<typeof import("../migrate-legacy-plugin-entry")> {
return import(`../migrate-legacy-plugin-entry?test=${Date.now()}-${Math.random()}`)
}
afterAll(() => {
@@ -217,4 +217,4 @@ describe("migrateLegacyPluginEntry", () => {
})
})
})
})
})