Skip to content

Commit 498e907

Browse files
committed
chore: migrate core (commands) tests to vitest
1 parent 09e1eb9 commit 498e907

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

core/commands/util.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { ctxItemToRifWithContents } from "./util";
1+
import { describe, expect, it } from "vitest";
22
import { ContextItemWithId, RangeInFileWithContents } from "../index";
3+
import { ctxItemToRifWithContents } from "./util";
34

45
describe("ctxItemToRifWithContents", () => {
56
it("should parse start and end lines from the item name when format is valid", () => {

core/jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ export default {
3535
testPathIgnorePatterns: [
3636
"<rootDir>/config/yaml/LocalPlatformClient.test.ts",
3737
"<rootDir>/autocomplete/",
38+
"<rootDir>/commands/",
3839
],
3940
};

core/vitest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export default defineConfig({
1313
"**/*.vitest.ts",
1414
"config/yaml/LocalPlatformClient.test.ts",
1515
"autocomplete/**/*.test.ts",
16+
"commands/**/*.test.ts",
1617
],
1718
},
1819
});

0 commit comments

Comments
 (0)