Skip to content

Commit b68421c

Browse files
committed
chore: Fixed linting errors
1 parent 835dae1 commit b68421c

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

components/Layout/Logo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Anchor, Box } from "@mantine/core"
1+
import { Anchor } from "@mantine/core"
22
import { useComputedColorScheme } from "@mantine/core"
33
import { Link } from "react-router"
44
// @ts-ignore

vitest.config.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import { basename, dirname, join } from "node:path"
2+
import { loadEnvFile } from "node:process"
3+
import { configDefaults, defineConfig } from "vitest/config"
4+
import { coverageConfigDefaults } from "vitest/config"
5+
6+
try {
7+
loadEnvFile(join(import.meta.dirname, ".env"))
8+
} catch {}
9+
10+
export default defineConfig({
11+
test: {
12+
include: ["**/*.spec.(ts|tsx)"],
13+
exclude: [...configDefaults.exclude, "**/build/**", "**/compile/**"],
14+
env: { NODE_OPTIONS: "--no-warnings" },
15+
testTimeout: 60 * 1000,
16+
passWithNoTests: true,
17+
silent: "passed-only",
18+
coverage: {
19+
enabled: true,
20+
reporter: ["html", "json"],
21+
exclude: [
22+
...coverageConfigDefaults.exclude,
23+
"**/@*",
24+
"**/build/**",
25+
"**/coverage/**",
26+
"**/examples/**",
27+
"**/messages.js",
28+
"**/index.ts",
29+
"**/main.ts",
30+
],
31+
},
32+
resolveSnapshotPath: (testPath, snapExtension) => {
33+
return (
34+
join(dirname(testPath), "fixtures", "generated", basename(testPath)) +
35+
snapExtension
36+
)
37+
},
38+
},
39+
})

0 commit comments

Comments
 (0)