Skip to content

Commit 51e8a38

Browse files
committed
chore: reorg tests related
1 parent 1c05552 commit 51e8a38

File tree

328 files changed

+429
-439
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

328 files changed

+429
-439
lines changed

.github/workflows/test-ubuntu.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
if: steps.changes.outputs.changed == 'true'
6161
run: pnpm run test:unit
6262

63-
# ======== e2e ========
63+
# ======== integration && e2e ========
6464
e2e-ubuntu:
6565
runs-on: ubuntu-latest
6666
strategy:
@@ -97,18 +97,12 @@ jobs:
9797

9898
- name: Install Dependencies
9999
if: steps.changes.outputs.changed == 'true'
100-
run: pnpm install && cd ./e2e && pnpx playwright install
100+
run: pnpm install && cd ./tests && npx playwright install
101101

102-
- name: E2E Artifact Test (Vitest)
102+
- name: Features Integration Test (Vitest)
103103
if: steps.changes.outputs.changed == 'true'
104-
run: pnpm run test:artifact
104+
run: pnpm run test:features
105105

106-
- name: Examples Test
107-
if: steps.changes.outputs.changed == 'true'
108-
run: |
109-
pnpm run build:examples
110-
111-
- name: E2E Test (Playwright)
106+
- name: Examples E2E Test (Playwright)
112107
if: steps.changes.outputs.changed == 'true'
113108
run: pnpm run test:e2e
114-

.github/workflows/test-windows.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
if: steps.changes.outputs.changed == 'true'
6565
run: pnpm run test:unit
6666

67-
# # ======== e2e ========
67+
# # ======== integration && e2e ========
6868
e2e-windows:
6969
runs-on: windows-latest
7070
strategy:
@@ -106,16 +106,12 @@ jobs:
106106

107107
- name: Install Dependencies
108108
if: steps.changes.outputs.changed == 'true'
109-
run: pnpm install && cd ./e2e && npx playwright install
109+
run: pnpm install && cd ./tests && npx playwright install
110110

111-
- name: E2E Artifact Test (Vitest)
111+
- name: Features Integration Test (Vitest)
112112
if: steps.changes.outputs.changed == 'true'
113-
run: pnpm run test:artifact
113+
run: pnpm run test:features
114114

115-
- name: Examples Test
116-
if: steps.changes.outputs.changed == 'true'
117-
run: pnpm run build:examples
118-
119-
- name: E2E Test (Playwright)
115+
- name: Examples E2E Test (Playwright)
120116
if: steps.changes.outputs.changed == 'true'
121117
run: pnpm run test:e2e

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ doc_build/
1212
playwright-report/
1313
tsconfig.tsbuildinfo
1414
test-temp-*
15+
test-results
1516

1617
.vscode/**/*
1718
!.vscode/settings.json

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
"linter": {
3838
"enabled": true,
39-
"ignore": ["./e2e/cases/**/*/src/*"],
39+
"ignore": ["./tests/features/**/*/src/*"],
4040
"rules": {
4141
"recommended": true,
4242
"style": {

e2e/cases/copy/index.test.ts

Lines changed: 0 additions & 34 deletions
This file was deleted.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
"changeset": "changeset",
1414
"check-dependency-version": "check-dependency-version-consistency .",
1515
"check-spell": "npx cspell",
16-
"lint": "biome check . --diagnostic-level=warn && pnpm run check-spell",
16+
"lint": "biome check . --diagnostic-level=warn && pnpm run check-spell",
1717
"prebundle": "nx run-many -t prebundle",
1818
"prepare": "pnpm run build && simple-git-hooks",
1919
"sort-package-json": "npx sort-package-json \"packages/*/package.json\"",
20-
"test:artifact": "vitest run --project artifact",
21-
"test:artifact:watch": "vitest --project artifact",
22-
"test:e2e": "cd e2e && pnpm run test",
20+
"test:e2e": "pnpm run build:examples && cd tests && pnpm run test:e2e",
21+
"test:features": "vitest run --project features",
22+
"test:features:watch": "vitest --project features",
2323
"test:unit": "vitest run --project unit*",
2424
"test:unit:watch": "vitest --project unit*",
25-
"testu": "pnpm run test:unit -u && pnpm run test:artifact -u",
25+
"test:update": "pnpm run test:unit -u && pnpm run test:features -u",
2626
"update:rsbuild": "npx taze minor --include /rsbuild/ -w -r -l",
2727
"watch": "pnpm build --watch"
2828
},

0 commit comments

Comments
 (0)