-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
Describe the bug
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Startup Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
TypeError: allTestFiles.filter is not a function
at config (file:///Users/dev/mui/mui-x/node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@vitest/browser/dist/index.js:2162:47)
at async runConfigHook (file:///Users/dev/mui/mui-x/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-D8YhmIY-.js:67015:19)
at async resolveConfig (file:///Users/dev/mui/mui-x/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-D8YhmIY-.js:66466:12)
at async _createServer (file:///Users/dev/mui/mui-x/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-D8YhmIY-.js:63050:18)
at async createBrowserServer (file:///Users/dev/mui/mui-x/node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@vitest/browser/dist/index.js:2501:16)
at async WorkspaceProject.initBrowserServer (file:///Users/dev/mui/mui-x/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vitest/dist/chunks/cli-api.BKkmK21J.js:9483:21)
at async WorkspaceProject.setServer (file:///Users/dev/mui/mui-x/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vitest/dist/chunks/cli-api.BKkmK21J.js:9549:5)
at async configureServer (file:///Users/dev/mui/mui-x/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vitest/dist/chunks/cli-api.BKkmK21J.js:9028:9)
at async _createServer (file:///Users/dev/mui/mui-x/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-D8YhmIY-.js:63372:20)
at async createViteServer (file:///Users/dev/mui/mui-x/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vitest/dist/chunks/cli-api.BKkmK21J.js:9050:18)
ELIFECYCLE Command failed with exit code 1.
Reproduction
While working on this PR: mui/mui-x#14508
Tests run normally on 2.0.5
Upgrade vitest to 2.1.0, the error will appear.
If you remove the browser
section in the config, it works. I don't know exactly what causes it though, as I couldn't reproduce in a smaller repo.
System Info
System:
OS: macOS 14.6.1
CPU: (11) arm64 Apple M3 Pro
Memory: 245.22 MB / 36.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm
pnpm: 9.10.0 - ~/.nvm/versions/node/v20.12.2/bin/pnpm
Browsers:
Brave Browser: 127.1.68.137
Chrome: 128.0.6613.138
Safari: 17.6
npmPackages:
@vitejs/plugin-react: ^4.3.1 => 4.3.1
@vitest/browser: ^2.0.5 => 2.0.5
vitest: 2.1.1 => 2.1.1
Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.