Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"test:benchmark": "cd ./tests && pnpm run test:benchmark",
"test:e2e": "pnpm run build:examples && cd tests && pnpm run test:e2e",
"test:ecosystem-ci": "pnpm run test:unit && cross-env ECO_CI=1 pnpm run test:integration && pnpm run test:e2e",
"test:integration": "pnpm -r --filter \"./tests\" run test",
"test:unit": "pnpm -r --filter \"./packages/**\" run test",
"test:integration": "rstest run --project integration",
"test:unit": "rstest run --project unit*",
"testu": "pnpm run test:unit -u && pnpm run test:integration -u",
"type-check": "pnpm -r run type-check",
"update:rsbuild": "npx taze minor --include /rsbuild/ -w -r -l",
Expand All @@ -44,7 +44,7 @@
"@biomejs/biome": "^2.2.2",
"@changesets/cli": "^2.29.6",
"@rslint/core": "^0.1.12",
"@rstest/core": "^0.3.0",
"@rstest/core": "^0.3.1",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.18.0",
"check-dependency-version-consistency": "^5.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/rstest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from '@rstest/core';
import { shared } from '../../rstest.workspace';
import { shared } from '../../rstest.config';

export default defineConfig({
...shared,
Expand Down
1 change: 1 addition & 0 deletions packages/core/tests/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ describe('Should compose create Rsbuild config correctly', () => {
source: {
preEntry: './a.js',
},
root: join(__dirname, '..'),
resolve: {
alias: {
foo: 'foo',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"test": "rstest"
},
"devDependencies": {
"@rstest/core": "^0.3.0"
"@rstest/core": "^0.3.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"test": "rstest"
},
"devDependencies": {
"@rstest/core": "^0.3.0"
"@rstest/core": "^0.3.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"test": "rstest"
},
"devDependencies": {
"@rstest/core": "^0.3.0",
"@rstest/core": "^0.3.1",
"@testing-library/jest-dom": "^6.8.0",
"@testing-library/react": "^16.3.0",
"jsdom": "^26.1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"test": "rstest"
},
"devDependencies": {
"@rstest/core": "^0.3.0",
"@rstest/core": "^0.3.1",
"@testing-library/jest-dom": "^6.8.0",
"@testing-library/react": "^16.3.0",
"jsdom": "^26.1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"test": "rstest"
},
"devDependencies": {
"@rstest/core": "^0.3.0",
"@rstest/core": "^0.3.1",
"@testing-library/jest-dom": "^6.8.0",
"@testing-library/vue": "^8.1.0",
"@vue/test-utils": "^2.4.6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"test": "rstest"
},
"devDependencies": {
"@rstest/core": "^0.3.0",
"@rstest/core": "^0.3.1",
"@testing-library/jest-dom": "^6.8.0",
"@testing-library/vue": "^8.1.0",
"@vue/test-utils": "^2.4.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-rslib/rstest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from '@rstest/core';
import { shared } from '../../rstest.workspace';
import { shared } from '../../rstest.config';

export default defineConfig({
...shared,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
},
"devDependencies": {
"@rslib/core": "workspace:*",
"@rstest/core": "^0.3.0"
"@rstest/core": "^0.3.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"devDependencies": {
"@rslib/core": "workspace:*",
"@rstest/core": "^0.3.0",
"@rstest/core": "^0.3.1",
"@types/node": "^22.18.0",
"typescript": "^5.9.2"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
},
"devDependencies": {
"@rslib/core": "workspace:*",
"@rstest/core": "^0.3.0"
"@rstest/core": "^0.3.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"devDependencies": {
"@rslib/core": "workspace:*",
"@rstest/core": "^0.3.0",
"@rstest/core": "^0.3.1",
"@types/node": "^22.18.0",
"typescript": "^5.9.2"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@rsbuild/core": "~1.5.1",
"@rsbuild/plugin-react": "^1.3.5",
"@rslib/core": "workspace:*",
"@rstest/core": "^0.3.0",
"@rstest/core": "^0.3.1",
"@storybook/addon-docs": "^9.1.3",
"@storybook/addon-essentials": "^9.0.0-alpha.12",
"@storybook/addon-interactions": "^9.0.0-alpha.10",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@rsbuild/core": "~1.5.1",
"@rsbuild/plugin-react": "^1.3.5",
"@rslib/core": "workspace:*",
"@rstest/core": "^0.3.0",
"@rstest/core": "^0.3.1",
"@storybook/addon-docs": "^9.1.3",
"@storybook/addon-essentials": "^9.0.0-alpha.12",
"@storybook/addon-interactions": "^9.0.0-alpha.10",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"devDependencies": {
"@rsbuild/plugin-react": "^1.3.5",
"@rslib/core": "workspace:*",
"@rstest/core": "^0.3.0",
"@rstest/core": "^0.3.1",
"@testing-library/jest-dom": "^6.8.0",
"@testing-library/react": "^16.3.0",
"jsdom": "^26.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"devDependencies": {
"@rsbuild/plugin-react": "^1.3.5",
"@rslib/core": "workspace:*",
"@rstest/core": "^0.3.0",
"@rstest/core": "^0.3.1",
"@testing-library/jest-dom": "^6.8.0",
"@testing-library/react": "^16.3.0",
"@types/react": "^19.1.12",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"devDependencies": {
"@rsbuild/core": "~1.5.1",
"@rslib/core": "workspace:*",
"@rstest/core": "^0.3.0",
"@rstest/core": "^0.3.1",
"@storybook/addon-docs": "^9.1.3",
"@storybook/addon-essentials": "^9.0.0-alpha.12",
"@storybook/addon-interactions": "^9.0.0-alpha.10",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"devDependencies": {
"@rsbuild/core": "~1.5.1",
"@rslib/core": "workspace:*",
"@rstest/core": "^0.3.0",
"@rstest/core": "^0.3.1",
"@storybook/addon-docs": "^9.1.3",
"@storybook/addon-essentials": "^9.0.0-alpha.12",
"@storybook/addon-interactions": "^9.0.0-alpha.10",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"devDependencies": {
"@rslib/core": "workspace:*",
"@rstest/core": "^0.3.0",
"@rstest/core": "^0.3.1",
"@testing-library/jest-dom": "^6.8.0",
"@testing-library/vue": "^8.1.0",
"@vue/test-utils": "^2.4.6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"devDependencies": {
"@rslib/core": "workspace:*",
"@rstest/core": "^0.3.0",
"@rstest/core": "^0.3.1",
"@testing-library/jest-dom": "^6.8.0",
"@testing-library/vue": "^8.1.0",
"@vue/test-utils": "^2.4.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-dts/rstest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from '@rstest/core';
import { shared } from '../../rstest.workspace';
import { shared } from '../../rstest.config';

// Disable color in test
process.env.NO_COLOR = '1';
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

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

14 changes: 14 additions & 0 deletions rstest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// import type { ProjectConfig } from '@rstest/core';
import { defineConfig, type RstestConfig } from '@rstest/core';

export const shared: RstestConfig = {
globals: true,
testEnvironment: 'node',
testTimeout: 60_000,
hookTimeout: 50_000,
restoreMocks: true,
};

export default defineConfig({
projects: ['packages/*', 'tests'],
});
15 changes: 0 additions & 15 deletions rstest.workspace.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tests/rstest.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// import codspeedPlugin from '@codspeed/vitest-plugin';
import { defineConfig } from '@rstest/core';
import { shared } from '../rstest.workspace';
import { shared } from '../rstest.config';

export default defineConfig({
...shared,
Expand Down
Loading