Skip to content

Commit c92a87f

Browse files
authored
deps: add playwright to workspace devDependencies (#92)
1 parent b563e60 commit c92a87f

File tree

9 files changed

+70
-66
lines changed

9 files changed

+70
-66
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: ./.github/actions/setup-node-pnpm
3131

3232
- name: Install Playwright browsers
33-
run: pnpx playwright install chromium
33+
run: pnpm exec playwright install chromium
3434

3535
- run: pnpm ready
3636

apps/dashboard/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"@vitest/browser": "^4.0.3",
3333
"@vitest/browser-playwright": "^4.0.3",
3434
"@vitest/ui": "^4.0.3",
35-
"happy-dom": "^20.0.0",
3635
"playwright": "^1.55.0",
3736
"rolldown-vite": "^7.1.10",
3837
"tailwindcss": "^4.1.13",

apps/dashboard/src/components/minification/CompressionRatioChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function CompressionRatioChart({ data }: CompressionRatioChartProps) {
4242
<LabelList
4343
dataKey='value'
4444
position='top'
45-
formatter={(label: string) => `${label}%`}
45+
formatter={(label) => `${label as number}%`}
4646
style={{ fontSize: '10px', fill: '#94a3b8' }}
4747
/>
4848
</Bar>

apps/dashboard/src/components/minification/MinificationTimeChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function MinificationTimeChart({ data }: MinificationTimeChartProps) {
3939
<LabelList
4040
dataKey='value'
4141
position='top'
42-
formatter={(label: string) => `${label}ms`}
42+
formatter={(label) => `${label as number}ms`}
4343
style={{ fontSize: '12px', fill: '#94a3b8' }}
4444
/>
4545
</Bar>

apps/dashboard/src/components/rolldown/BuildTimeChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function BuildTimeChart() {
4949
<LabelList
5050
dataKey='value'
5151
position='top'
52-
formatter={(label: string) => `${label}ms`}
52+
formatter={(label) => `${label as number}ms`}
5353
style={{ fontSize: '11px', fill: '#94a3b8' }}
5454
/>
5555
</Bar>

apps/dashboard/vitest.config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,5 @@ export default defineProject({
1616
},
1717
],
1818
},
19-
globals: true,
20-
environment: 'happy-dom',
2119
},
2220
});

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@voidzero-dev/vite-plus": "latest",
1919
"dprint": "^0.50.2",
2020
"oxlint-tsgolint": "^0.3.0",
21+
"playwright": "^1.56.1",
2122
"top-github-dependents-by-stars": "^1.0.4",
2223
"vitest": "^4.0.3"
2324
},

pnpm-lock.yaml

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

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ minimumReleaseAgeExclude:
2727
- 'vite'
2828
- 'vitepress'
2929
- 'vitest'
30+
- '@vitest/*'

0 commit comments

Comments
 (0)