fix imports
This commit is contained in:
parent
35029e2409
commit
b6eaae6278
1 changed files with 2 additions and 4 deletions
|
|
@ -1,5 +1,7 @@
|
|||
import { SecretType } from "@continuedev/config-yaml";
|
||||
import { beforeEach, expect, test, vi } from "vitest";
|
||||
import { BrowserSerializedContinueConfig } from "..";
|
||||
import { usesFreeTrialApiKey } from "./usesFreeTrialApiKey";
|
||||
|
||||
// Create the mock before importing anything else
|
||||
const mockDecodeSecretLocation = vi.fn();
|
||||
|
|
@ -14,10 +16,6 @@ vi.mock("@continuedev/config-yaml", () => ({
|
|||
decodeSecretLocation: mockDecodeSecretLocation,
|
||||
}));
|
||||
|
||||
// Import after mocking
|
||||
const { usesFreeTrialApiKey } = await import("./usesFreeTrialApiKey");
|
||||
const { SecretType } = await import("@continuedev/config-yaml");
|
||||
|
||||
beforeEach(() => {
|
||||
mockDecodeSecretLocation.mockReset();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue