Skip to content

Commit e3907d4

Browse files
authored
chore: use integration as name of test folders (#245)
1 parent 86e0835 commit e3907d4

File tree

307 files changed

+162
-162
lines changed

Some content is hidden

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

307 files changed

+162
-162
lines changed

.github/workflows/test-ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100

101101
- name: Features Integration Test (Vitest)
102102
if: steps.changes.outputs.changed == 'true'
103-
run: pnpm run test:features
103+
run: pnpm run test:integration
104104

105105
- name: Examples E2E Test (Playwright)
106106
if: steps.changes.outputs.changed == 'true'

.github/workflows/test-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110

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

115115
- name: Examples E2E Test (Playwright)
116116
if: steps.changes.outputs.changed == 'true'

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": ["./tests/features/**/*/src/*"],
39+
"ignore": ["./tests/integration/**/*/src/*"],
4040
"rules": {
4141
"recommended": true,
4242
"style": {

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
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": "pnpm run test:unit && pnpm run test:features && pnpm run test:e2e",
20+
"test": "pnpm run test:unit && pnpm run test:integration && pnpm run test:e2e",
2121
"test:e2e": "pnpm run build:examples && cd tests && pnpm run test:e2e",
22-
"test:features": "vitest run --project features",
23-
"test:features:watch": "vitest --project features",
22+
"test:integration": "vitest run --project integration",
23+
"test:integration:watch": "vitest --project integration",
2424
"test:unit": "vitest run --project unit*",
2525
"test:unit:watch": "vitest --project unit*",
26-
"test:update": "pnpm run test:unit -u && pnpm run test:features -u",
26+
"testu": "pnpm run test:unit -u && pnpm run test:integration -u",
2727
"update:rsbuild": "npx taze minor --include /rsbuild/ -w -r -l",
2828
"watch": "pnpm build --watch"
2929
},

pnpm-lock.yaml

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

tests/features/copy/index.test.ts

Lines changed: 0 additions & 34 deletions
This file was deleted.
File renamed without changes.

tests/features/auto-extension/index.test.ts renamed to tests/integration/auto-extension/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ describe('should respect output.filename.js to override builtin logic', () => {
4040
const { entryFiles } = await buildAndGetResults(fixturePath);
4141
expect(extname(entryFiles.esm!)).toEqual('.mjs');
4242
expect(entryFiles.cjs).toMatchInlineSnapshot(
43-
`"<ROOT>/tests/features/auto-extension/type-commonjs/config-override/dist/cjs/index.d08e1bb3.js"`,
43+
`"<ROOT>/tests/integration/auto-extension/type-commonjs/config-override/dist/cjs/index.d08e1bb3.js"`,
4444
);
4545
});
4646

4747
test('type is module', async () => {
4848
const fixturePath = join(__dirname, 'type-module', 'config-override');
4949
const { entryFiles } = await buildAndGetResults(fixturePath);
5050
expect(entryFiles.esm).toMatchInlineSnapshot(
51-
`"<ROOT>/tests/features/auto-extension/type-module/config-override/dist/esm/index.d2068839.js"`,
51+
`"<ROOT>/tests/integration/auto-extension/type-module/config-override/dist/esm/index.d2068839.js"`,
5252
);
5353
expect(extname(entryFiles.cjs!)).toEqual('.cjs');
5454
});

0 commit comments

Comments
 (0)