Skip to content

Commit 066b5be

Browse files
committed
feat: add dotenv to test setup and run lefthook in parallel
1 parent 35936c6 commit 066b5be

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

lefthook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pre-commit:
2-
parallel: false
2+
parallel: true
33
commands:
44
lint:
55
run: pnpm biome check --write --unsafe --staged --no-errors-on-unmatched && git add -u
@@ -8,4 +8,4 @@ pre-commit:
88
build:
99
run: pnpm build
1010
test:
11-
run: pnpm test:ci
11+
run: pnpm test:ci

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"@types/react-test-renderer": "18.3.0",
7171
"@vitest/coverage-v8": "3.0.9",
7272
"concurrently": "9.1.2",
73+
"dotenv": "^16.4.7",
7374
"jsdom": "26.0.0",
7475
"lefthook": "1.11.2",
7576
"prop-types": "15.8.1",

pnpm-lock.yaml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/setup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// biome-ignore lint/style/noNamespaceImport: <explanation>
2+
import "dotenv/config";
23
import * as matchers from "@testing-library/jest-dom/matchers";
34
import { cleanup } from "@testing-library/react";
45
import { afterEach, expect } from "vitest";

0 commit comments

Comments
 (0)