test: load real modules with unique import ids

This commit is contained in:
YeonGyu-Kim
2026-04-04 19:42:18 +09:00
parent b0f754f506
commit 8b8559f39d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ const {
generateCodeVerifier,
generateCodeChallenge,
buildAuthorizationUrl,
} = await import(new URL("./provider.ts", import.meta.url).href)
} = await import(new URL("./provider.ts?real-provider-test", import.meta.url).href)
describe("McpOAuthProvider", () => {
describe("generateCodeVerifier", () => {
+1 -1
View File
@@ -7,7 +7,7 @@ import { tmpdir } from "node:os"
import { join } from "node:path"
const { createConnectedProvidersCacheStore, findProviderModelMetadata } = await import(
new URL("./connected-providers-cache.ts", import.meta.url).href
new URL("./connected-providers-cache.ts?real-connected-providers-cache-test", import.meta.url).href
)
function createTestCacheContext() {
+1 -1
View File
@@ -4,7 +4,7 @@ import { tmpdir } from "node:os"
import { join } from "node:path"
const { checkForLegacyPluginEntry } = await import(
new URL("./legacy-plugin-warning.ts", import.meta.url).href
new URL("./legacy-plugin-warning.ts?real-legacy-plugin-warning-test", import.meta.url).href
)
function createTestConfigDir(): string {