Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
0ad2a96
Bump Vite & Vitest to ^4.0.2
renovate[bot] Oct 27, 2025
f273f78
Align deps
bernardobelchior Oct 27, 2025
7bb6ae8
Fix breaking changes
bernardobelchior Oct 27, 2025
f24d82e
Dedupe
bernardobelchior Oct 27, 2025
edcae5a
Fix wrong type import
bernardobelchior Oct 27, 2025
3afec7e
Remove @types/mocha
bernardobelchior Oct 27, 2025
35002f3
Pin same versions
bernardobelchior Oct 27, 2025
2a661e7
Upgrade to 4.0.3
bernardobelchior Oct 27, 2025
caadf9c
Fix node types
bernardobelchior Oct 27, 2025
29db56f
Upgrade to 4.0.4
bernardobelchior Oct 27, 2025
cea08d4
Patch internal test utils
bernardobelchior Oct 27, 2025
9598403
Enable isolation
bernardobelchior Oct 28, 2025
973bc46
Update patch
bernardobelchior Oct 28, 2025
66bf24c
Set VITEST env var
bernardobelchior Oct 28, 2025
34c872d
Use commit from monorepo
bernardobelchior Oct 28, 2025
871c050
Disable isolation again
bernardobelchior Oct 29, 2025
c549e5b
update max workers in CI
JCQuintas Oct 29, 2025
bbb706a
Remove patch
bernardobelchior Oct 29, 2025
91428c4
Upgrade to v4.0.5
bernardobelchior Oct 29, 2025
c6663eb
Pin master commit
bernardobelchior Oct 29, 2025
bfcfa81
Reduce suite concurrency
bernardobelchior Oct 29, 2025
89ed7d0
Revert "Reduce suite concurrency"
bernardobelchior Oct 29, 2025
45a9e84
try ordering
JCQuintas Oct 31, 2025
05dcb2d
Revert "try ordering"
bernardobelchior Oct 31, 2025
1b32e47
Upgrade to v4.0.6
bernardobelchior Oct 31, 2025
6975be9
Set maxWorkers on eslint-plugin-mui-x
bernardobelchior Oct 31, 2025
9124bfe
Try Vitest fix
bernardobelchior Nov 3, 2025
115523a
Upgrade to v4.0.7
bernardobelchior Nov 5, 2025
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"@types/yargs": "^17.0.34",
"@typescript-eslint/parser": "catalog:",
"@vitejs/plugin-react": "catalog:",
"@vitest/browser": "catalog:",
"@vitest/browser-playwright": "catalog:",
"@vitest/coverage-v8": "catalog:",
"@vvago/vale": "^3.12.0",
"axe-core": "4.11.0",
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-plugin-mui-x/vitest.config.node.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
environment: 'node',
maxWorkers: 1,
},
});
33 changes: 12 additions & 21 deletions packages/x-charts-premium/vitest.config.browser.mts
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
/// <reference types="@vitest/browser/providers/playwright" />
import { mergeConfig } from 'vitest/config';
import { mergeConfig, defineConfig } from 'vitest/config';
import sharedConfig from '../../vitest.shared.mts';
import { getTestName } from '../../scripts/getTestName.mts';

export default mergeConfig(sharedConfig, {
test: {
name: getTestName(import.meta.url),
browser: {
enabled: true,
instances: [
{
browser: 'chromium',
...(process.env.PLAYWRIGHT_SERVER_WS
? {
connect: {
wsEndpoint: process.env.PLAYWRIGHT_SERVER_WS,
},
}
: {}),
},
],
export default mergeConfig(
sharedConfig,
defineConfig({
test: {
name: getTestName(import.meta.url),
browser: {
enabled: true,
instances: [{ browser: 'chromium' }],
},
},
},
});
}),
);
33 changes: 12 additions & 21 deletions packages/x-charts-pro/vitest.config.browser.mts
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
/// <reference types="@vitest/browser/providers/playwright" />
import { mergeConfig } from 'vitest/config';
import { mergeConfig, defineConfig } from 'vitest/config';
import sharedConfig from '../../vitest.shared.mts';
import { getTestName } from '../../scripts/getTestName.mts';

export default mergeConfig(sharedConfig, {
test: {
name: getTestName(import.meta.url),
browser: {
enabled: true,
instances: [
{
browser: 'chromium',
...(process.env.PLAYWRIGHT_SERVER_WS
? {
connect: {
wsEndpoint: process.env.PLAYWRIGHT_SERVER_WS,
},
}
: {}),
},
],
export default mergeConfig(
sharedConfig,
defineConfig({
test: {
name: getTestName(import.meta.url),
browser: {
enabled: true,
instances: [{ browser: 'chromium' }],
},
},
},
});
}),
);
26 changes: 12 additions & 14 deletions packages/x-charts-vendor/vitest.config.browser.mts
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
/// <reference types="@vitest/browser/providers/playwright" />
import { mergeConfig } from 'vitest/config';
import { defineConfig, mergeConfig } from 'vitest/config';
import sharedConfig from '../../vitest.shared.mts';
import { getTestName } from '../../scripts/getTestName.mts';

export default mergeConfig(sharedConfig, {
test: {
name: getTestName(import.meta.url),
browser: {
enabled: true,
instances: [
{
browser: 'chromium',
},
],
export default mergeConfig(
sharedConfig,
defineConfig({
test: {
name: getTestName(import.meta.url),
browser: {
enabled: true,
instances: [{ browser: 'chromium' }],
},
},
},
});
}),
);
33 changes: 12 additions & 21 deletions packages/x-charts/vitest.config.browser.mts
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
/// <reference types="@vitest/browser/providers/playwright" />
import { mergeConfig } from 'vitest/config';
import { mergeConfig, defineConfig } from 'vitest/config';
import sharedConfig from '../../vitest.shared.mts';
import { getTestName } from '../../scripts/getTestName.mts';

export default mergeConfig(sharedConfig, {
test: {
name: getTestName(import.meta.url),
browser: {
enabled: true,
instances: [
{
browser: 'chromium',
...(process.env.PLAYWRIGHT_SERVER_WS
? {
connect: {
wsEndpoint: process.env.PLAYWRIGHT_SERVER_WS,
},
}
: {}),
},
],
export default mergeConfig(
sharedConfig,
defineConfig({
test: {
name: getTestName(import.meta.url),
browser: {
enabled: true,
instances: [{ browser: 'chromium' }],
},
},
},
});
}),
);
33 changes: 12 additions & 21 deletions packages/x-data-grid-premium/vitest.config.browser.mts
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
/// <reference types="@vitest/browser/providers/playwright" />
import { mergeConfig } from 'vitest/config';
import { mergeConfig, defineConfig } from 'vitest/config';
import sharedConfig from '../../vitest.shared.mts';
import { getTestName } from '../../scripts/getTestName.mts';

export default mergeConfig(sharedConfig, {
test: {
name: getTestName(import.meta.url),
browser: {
enabled: true,
instances: [
{
browser: 'chromium',
...(process.env.PLAYWRIGHT_SERVER_WS
? {
connect: {
wsEndpoint: process.env.PLAYWRIGHT_SERVER_WS,
},
}
: {}),
},
],
export default mergeConfig(
sharedConfig,
defineConfig({
test: {
name: getTestName(import.meta.url),
browser: {
enabled: true,
instances: [{ browser: 'chromium' }],
},
},
},
});
}),
);
57 changes: 31 additions & 26 deletions packages/x-data-grid-pro/vitest.config.browser.mts
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@
/// <reference types="@vitest/browser/providers/playwright" />
import { mergeConfig } from 'vitest/config';
import { defineConfig, mergeConfig } from 'vitest/config';
import { playwright } from '@vitest/browser-playwright';
import sharedConfig from '../../vitest.shared.mts';
import { getTestName } from '../../scripts/getTestName.mts';

export default mergeConfig(sharedConfig, {
test: {
name: getTestName(import.meta.url),
browser: {
enabled: true,
instances: [
{
browser: 'chromium',
...(process.env.PLAYWRIGHT_SERVER_WS
? {
connect: {
wsEndpoint: process.env.PLAYWRIGHT_SERVER_WS,
},
}
: {
launch: {
// Required for tests which use scrollbars.
ignoreDefaultArgs: ['--hide-scrollbars'],
},
}),
},
],
export default mergeConfig(
sharedConfig,
defineConfig({
test: {
name: getTestName(import.meta.url),
browser: {
enabled: true,
instances: [
{
browser: 'chromium',
provider: playwright({
...(process.env.PLAYWRIGHT_SERVER_WS
? {
connectOptions: {
wsEndpoint: process.env.PLAYWRIGHT_SERVER_WS,
},
}
: {
launchOptions: {
// Required for tests which use scrollbars.
ignoreDefaultArgs: ['--hide-scrollbars'],
},
Comment on lines +24 to +27
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be able to move this to the shared config now I believe, which would simplify this file 😆

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't used in all files tests, so I didn't want to move it there if we don't use it. Would the other packages benefit from this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably just make the sharedConfig a func that accepts arguments, so we can simplify this file

}),
}),
},
],
},
},
},
});
}),
);
57 changes: 31 additions & 26 deletions packages/x-data-grid/vitest.config.browser.mts
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@
/// <reference types="@vitest/browser/providers/playwright" />
import { mergeConfig } from 'vitest/config';
import { mergeConfig, defineConfig } from 'vitest/config';
import { playwright } from '@vitest/browser-playwright';
import sharedConfig from '../../vitest.shared.mts';
import { getTestName } from '../../scripts/getTestName.mts';

export default mergeConfig(sharedConfig, {
test: {
name: getTestName(import.meta.url),
browser: {
enabled: true,
instances: [
{
browser: 'chromium',
...(process.env.PLAYWRIGHT_SERVER_WS
? {
connect: {
wsEndpoint: process.env.PLAYWRIGHT_SERVER_WS,
},
}
: {
launch: {
// Required for tests which use scrollbars.
ignoreDefaultArgs: ['--hide-scrollbars'],
},
}),
},
],
export default mergeConfig(
sharedConfig,
defineConfig({
test: {
name: getTestName(import.meta.url),
browser: {
enabled: true,
instances: [
{
browser: 'chromium',
provider: playwright({
...(process.env.PLAYWRIGHT_SERVER_WS
? {
connectOptions: {
wsEndpoint: process.env.PLAYWRIGHT_SERVER_WS,
},
}
: {
launchOptions: {
// Required for tests which use scrollbars.
ignoreDefaultArgs: ['--hide-scrollbars'],
},
}),
}),
},
],
},
},
},
});
}),
);
35 changes: 13 additions & 22 deletions packages/x-date-pickers-pro/vitest.config.browser.mts
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
/// <reference types="@vitest/browser/providers/playwright" />
import { fileURLToPath } from 'node:url';
import { mergeConfig } from 'vitest/config';
import { mergeConfig, defineConfig } from 'vitest/config';
import sharedConfig from '../../vitest.shared.mts';
import { getTestName } from '../../scripts/getTestName.mts';

export default mergeConfig(sharedConfig, {
test: {
name: getTestName(import.meta.url),
setupFiles: [fileURLToPath(new URL('../../test/utils/setupPickers.js', import.meta.url))],
browser: {
enabled: true,
instances: [
{
browser: 'chromium',
...(process.env.PLAYWRIGHT_SERVER_WS
? {
connect: {
wsEndpoint: process.env.PLAYWRIGHT_SERVER_WS,
},
}
: {}),
},
],
export default mergeConfig(
sharedConfig,
defineConfig({
test: {
name: getTestName(import.meta.url),
setupFiles: [fileURLToPath(new URL('../../test/utils/setupPickers.js', import.meta.url))],
browser: {
enabled: true,
instances: [{ browser: 'chromium' }],
},
},
},
});
}),
);
Loading
Loading