Skip to content

Commit

Permalink
chore: rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
SoonIter committed Sep 30, 2024
1 parent 94c2fd6 commit da72eac
Show file tree
Hide file tree
Showing 10 changed files with 90 additions and 48 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ jobs:
if: steps.changes.outputs.changed == 'true'
run: pnpm run test:e2e

# only run benchmark in Ubuntu
- name: Benchmarks (Vitest)
uses: CodSpeedHQ/action@v3
with:
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,3 @@ jobs:
- name: E2E Test (Playwright)
if: steps.changes.outputs.changed == 'true'
run: pnpm run test:e2e

- name: Benchmarks (Vitest)
uses: CodSpeedHQ/action@v3
with:
run: pnpm run test:benchmark
# token retrieved from the CodSpeed app at the previous step
token: ${{ secrets.CODSPEED_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"prepare": "pnpm run build && simple-git-hooks",
"sort-package-json": "npx sort-package-json \"packages/*/package.json\"",
"test": "pnpm run test:unit && pnpm run test:integration && pnpm run test:e2e",
"test:benchmark": "cd ./tests && pnpm run test:benchmark",
"test:e2e": "pnpm run build:examples && cd tests && pnpm run test:e2e",
"test:integration": "vitest run --project integration",
"test:integration:watch": "vitest --project integration",
Expand Down
80 changes: 80 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 0 additions & 14 deletions tests/benchmark/package.json

This file was deleted.

15 changes: 0 additions & 15 deletions tests/benchmark/tsconfig.json

This file was deleted.

11 changes: 0 additions & 11 deletions tests/benchmark/vitest.config.ts

This file was deleted.

2 changes: 2 additions & 0 deletions tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"private": true,
"type": "module",
"scripts": {
"test:benchmark": "vitest bench",
"test:e2e": "playwright test --pass-with-no-tests"
},
"dependencies": {
Expand All @@ -11,6 +12,7 @@
"react-dom": "^18.3.1"
},
"devDependencies": {
"@codspeed/vitest-plugin": "^3.1.1",
"@playwright/test": "1.47.2",
"@rsbuild/core": "1.0.7",
"@rsbuild/plugin-react": "1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion tests/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"noEmit": true,
"composite": true
},
"include": ["cases/**/*.ts", "playwright.config.ts", "scripts"],
"include": ["e2e/cases/**/*.ts", "playwright.config.ts", "scripts"],
"exclude": ["**/node_modules", "**/.*/"],
"references": [
{
Expand Down
5 changes: 5 additions & 0 deletions tests/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import codspeedPlugin from '@codspeed/vitest-plugin';
import { defineConfig } from 'vitest/config';
import { shared } from '../vitest.workspace';

Expand All @@ -8,5 +9,9 @@ export default defineConfig({
setupFiles: ['./setupVitestTests.ts'],
include: ['./integration/**/*.test.ts'],
exclude: ['**/node_modules/**'],
benchmark: {
include: ['./benchmark/**/*.bench.ts'],
},
},
plugins: [codspeedPlugin()],
});

0 comments on commit da72eac

Please sign in to comment.