test: load real modules with unique import ids
This commit is contained in:
@@ -7,7 +7,7 @@ const {
|
|||||||
generateCodeVerifier,
|
generateCodeVerifier,
|
||||||
generateCodeChallenge,
|
generateCodeChallenge,
|
||||||
buildAuthorizationUrl,
|
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("McpOAuthProvider", () => {
|
||||||
describe("generateCodeVerifier", () => {
|
describe("generateCodeVerifier", () => {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { tmpdir } from "node:os"
|
|||||||
import { join } from "node:path"
|
import { join } from "node:path"
|
||||||
|
|
||||||
const { createConnectedProvidersCacheStore, findProviderModelMetadata } = await import(
|
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() {
|
function createTestCacheContext() {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { tmpdir } from "node:os"
|
|||||||
import { join } from "node:path"
|
import { join } from "node:path"
|
||||||
|
|
||||||
const { checkForLegacyPluginEntry } = await import(
|
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 {
|
function createTestConfigDir(): string {
|
||||||
|
|||||||
Reference in New Issue
Block a user