Skip to content

Commit 5eb5556

Browse files
💚 test: fix test setup
1 parent e369f65 commit 5eb5556

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

frontend/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
"prepare": "cd .. && husky frontend/.husky",
1414
"test": "vitest",
1515
"test:coverage": "vitest --coverage --watch=false",
16-
"test-storybook": "test-storybook",
17-
"test-storybook:coverage": "test-storybook --coverage",
1816
"storybook": "storybook dev -p 6006",
1917
"build-storybook": "storybook build"
2018
},

frontend/vitest.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { defineConfig } from "vitest/config";
22

3+
import config from "./vite.config";
4+
35
export default defineConfig({
6+
...config,
47
test: {
58
globals: true,
69
environment: "jsdom",

frontend/vitest.workspace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const dirname =
1010

1111
// More info at: https://storybook.js.org/docs/writing-tests/test-addon
1212
export default defineWorkspace([
13-
"*.stories.tsx",
13+
"vitest.config.ts",
1414
{
1515
extends: "vite.config.ts",
1616
plugins: [

0 commit comments

Comments
 (0)