mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-02 03:36:33 +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.tsdk": "node_modules/typescript/lib",
|
||||||
"typescript.preferences.importModuleSpecifier": "non-relative",
|
"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";
|
import { absoluteUrl } from "./absolute-url";
|
||||||
|
|
||||||
describe("absoluteUrl", () => {
|
describe("absoluteUrl", () => {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import timezone from "dayjs/plugin/timezone";
|
import timezone from "dayjs/plugin/timezone";
|
||||||
import utc from "dayjs/plugin/utc";
|
import utc from "dayjs/plugin/utc";
|
||||||
import { describe, expect, it } from "vitest";
|
|
||||||
|
|
||||||
import { supportedTimeZones } from "@/utils/supported-time-zones";
|
import { supportedTimeZones } from "@/utils/supported-time-zones";
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import { describe, expect, it } from "vitest";
|
|
||||||
|
|
||||||
import { getValueByPath } from "./get-value-by-path";
|
import { getValueByPath } from "./get-value-by-path";
|
||||||
|
|
||||||
describe("getValueByPath", () => {
|
describe("getValueByPath", () => {
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
"@/*": ["src/*"],
|
"@/*": ["src/*"],
|
||||||
},
|
},
|
||||||
"strictNullChecks": true,
|
"strictNullChecks": true,
|
||||||
|
"types": ["vitest/globals"],
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"**/*.ts",
|
"**/*.ts",
|
||||||
|
|
|
@ -3,11 +3,13 @@ import { defineConfig } from "vitest/config";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
test: {
|
test: {
|
||||||
|
globals: true,
|
||||||
|
include: ["**/*.test.ts"],
|
||||||
exclude: ["**/node_modules/**", "**/*.spec.ts"],
|
exclude: ["**/node_modules/**", "**/*.spec.ts"],
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
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