mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-28 17:56:37 +02:00
🔧 Update vitest config for better vscode compatability (#1404)
This commit is contained in:
parent
ec2643a8ea
commit
501cdd2b56
7 changed files with 8 additions and 8 deletions
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { afterAll, beforeAll, describe, expect, it } from "vitest";
|
||||
|
||||
import { absoluteUrl } from "./absolute-url";
|
||||
|
||||
describe("absoluteUrl", () => {
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import { getValueByPath } from "./get-value-by-path";
|
||||
|
||||
describe("getValueByPath", () => {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"@/*": ["src/*"],
|
||||
},
|
||||
"strictNullChecks": true,
|
||||
"types": ["vitest/globals"],
|
||||
},
|
||||
"include": [
|
||||
"**/*.ts",
|
||||
|
|
|
@ -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"),
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
@ -1 +1 @@
|
|||
export default ["packages/*/vitest.config.ts", "apps/*/vitest.config.ts"];
|
||||
export default ["packages/*/vitest.config.mts", "apps/*/vitest.config.mts"];
|
||||
|
|
Loading…
Add table
Reference in a new issue