Skip to content

Commit ec0c4b9

Browse files
committed
Applied dedupe and cleared cache before running test-storybook
1 parent da67c98 commit ec0c4b9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"lint": "eslint . --max-warnings 0",
2323
"prepublishOnly": "node ../../scripts/copy-readme.js",
2424
"storybook": "storybook dev -p 6006",
25-
"test-storybook": "vitest --project=storybook --coverage --run",
25+
"test-storybook": "rm -rf node_modules/.cache/storybook && vitest --project=storybook --coverage",
2626
"test": "jest --env=jsdom --config=./jest.config.js",
2727
"test:accessibility": "jest --env=jsdom --config=./jest.config.accessibility.js",
2828
"test:watch": "jest --env=jsdom --config=./jest.config.js --watch"

packages/lib/vitest.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ export default defineConfig({
1111
optimizeDeps: {
1212
include: ["react", "react-dom", "react/jsx-runtime", "react/jsx-dev-runtime", "@emotion/react", "@emotion/styled"],
1313
},
14+
resolve: {
15+
dedupe: ["@emotion/react", "@emotion/styled"],
16+
},
1417
test: {
1518
projects: [
1619
{

0 commit comments

Comments
 (0)