🔧 Update vitest config for better vscode compatability (#1404)

This commit is contained in:
Luke Vella 2024-10-20 11:43:40 +01:00 committed by GitHub
parent ec2643a8ea
commit 501cdd2b56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 8 additions and 8 deletions

View file

@ -4,5 +4,7 @@
},
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.preferences.importModuleSpecifier": "non-relative",
"cSpell.words": ["Rallly", "Vella"]
"cSpell.words": ["Rallly", "Vella"],
"jestrunner.codeLensSelector": "",
"vitest.filesWatcherInclude": "**/*.test.ts"
}

View file

@ -1,5 +1,3 @@
import { afterAll, beforeAll, describe, expect, it } from "vitest";
import { absoluteUrl } from "./absolute-url";
describe("absoluteUrl", () => {

View file

@ -1,7 +1,6 @@
import dayjs from "dayjs";
import timezone from "dayjs/plugin/timezone";
import utc from "dayjs/plugin/utc";
import { describe, expect, it } from "vitest";
import { supportedTimeZones } from "@/utils/supported-time-zones";

View file

@ -1,5 +1,3 @@
import { describe, expect, it } from "vitest";
import { getValueByPath } from "./get-value-by-path";
describe("getValueByPath", () => {

View file

@ -6,6 +6,7 @@
"@/*": ["src/*"],
},
"strictNullChecks": true,
"types": ["vitest/globals"],
},
"include": [
"**/*.ts",

View file

@ -3,11 +3,13 @@ import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
globals: true,
include: ["**/*.test.ts"],
exclude: ["**/node_modules/**", "**/*.spec.ts"],
},
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
"@": path.resolve(__dirname, "./src"),
},
},
});

View file

@ -1 +1 @@
export default ["packages/*/vitest.config.ts", "apps/*/vitest.config.ts"];
export default ["packages/*/vitest.config.mts", "apps/*/vitest.config.mts"];