Skip to content

Commit 45daaa3

Browse files
committed
chore: more work on vitest storybook
Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com>
1 parent 7d80675 commit 45daaa3

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
unit:
88
name: Run tests and collect coverage
99
runs-on: ubuntu-latest
10-
container:
10+
# container:
1111
# Make sure to grab the latest version of the Playwright image
1212
# https://playwright.dev/docs/docker#pull-the-image
13-
image: mcr.microsoft.com/playwright:v1.54.1-noble
13+
# image: mcr.microsoft.com/playwright:v1.54.1-noble
1414

1515
steps:
1616
- uses: actions/checkout@v4
@@ -28,6 +28,9 @@ jobs:
2828
- run: npm ci
2929
name: Install dependencies
3030

31+
- run: npx playwright install chromium --with-deps
32+
name: Install Playwright Dependencies
33+
3134
- run: npm test -- --coverage
3235
name: Run tests with coverage
3336

@@ -87,6 +90,9 @@ jobs:
8790
- run: npm ci
8891
name: Install dependencies
8992

93+
- run: npx playwright install chromium --with-deps
94+
name: Install Playwright Dependencies
95+
9096
- run: npm test
9197
name: Serve Storybook and run tests
9298

.storybook/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const config: StorybookConfig = {
3232
return mergeConfig(config, {
3333
// Add dependencies to pre-optimization
3434
optimizeDeps: {
35-
include: ["storybook-dark-mode"],
35+
include: ["react/jsx-dev-runtime", "react-dom/client"],
3636
},
3737
});
3838
},

0 commit comments

Comments
 (0)