migrate core config tests to vitest
This commit is contained in:
parent
09e1eb9803
commit
1bcb9b2199
7 changed files with 9 additions and 8 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
|
||||
import { describe, expect, test } from "vitest";
|
||||
import { testConfigHandler } from "../test/fixtures";
|
||||
import { TEST_DIR } from "../test/testDir";
|
||||
import { getConfigTsPath } from "../util/paths";
|
||||
|
|
@ -24,7 +25,7 @@ describe.skip("Test the ConfigHandler and E2E config loading", () => {
|
|||
);
|
||||
});
|
||||
|
||||
test.skip("should add a system message from config.ts", async () => {
|
||||
test("should add a system message from config.ts", async () => {
|
||||
const configTs = `export function modifyConfig(config: Config): Config {
|
||||
config.systemMessage = "SYSTEM";
|
||||
return config;
|
||||
|
|
@ -39,7 +40,7 @@ describe.skip("Test the ConfigHandler and E2E config loading", () => {
|
|||
expect(config.systemMessage).toBe("SYSTEM");
|
||||
});
|
||||
|
||||
test.skip("should acknowledge override from .continuerc.json", async () => {
|
||||
test("should acknowledge override from .continuerc.json", async () => {
|
||||
fs.writeFileSync(
|
||||
path.join(TEST_DIR, ".continuerc.json"),
|
||||
JSON.stringify({ systemMessage: "SYSTEM2" }),
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { describe, expect, it } from "vitest";
|
||||
import {
|
||||
createMarkdownWithFrontmatter,
|
||||
createRuleFilePath,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { describe, expect, it } from "vitest";
|
||||
import {
|
||||
convertMarkdownRuleToContinueRule,
|
||||
parseMarkdownRule,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { describe, expect, it } from "vitest";
|
||||
import { PromptTemplate } from "..";
|
||||
import { serializePromptTemplates } from "./util";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { BlockType } from "@continuedev/config-yaml";
|
||||
import { describe, expect, test } from "@jest/globals";
|
||||
import { describe, expect, test } from "vitest";
|
||||
import { RULE_FILE_EXTENSION } from "../markdown";
|
||||
import { findAvailableFilename, getFileContent } from "./workspaceBlocks";
|
||||
|
||||
|
|
|
|||
|
|
@ -32,8 +32,5 @@ export default {
|
|||
// modulePathIgnorePatterns: [
|
||||
// "<rootDir>/config/yaml/LocalPlatformClient.test.ts",
|
||||
// ],
|
||||
testPathIgnorePatterns: [
|
||||
"<rootDir>/config/yaml/LocalPlatformClient.test.ts",
|
||||
"<rootDir>/autocomplete/",
|
||||
],
|
||||
testPathIgnorePatterns: ["<rootDir>/config/", "<rootDir>/autocomplete/"],
|
||||
};
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ export default defineConfig({
|
|||
fileParallelism: false,
|
||||
include: [
|
||||
"**/*.vitest.ts",
|
||||
"config/yaml/LocalPlatformClient.test.ts",
|
||||
"config/**/*.test.ts",
|
||||
"autocomplete/**/*.test.ts",
|
||||
],
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue