refactor(vitest.config): replace workspace by projects

workspace is deprecated in v3.2 and is removed in v4 of vitest
replace the usage
https://vitest.dev/guide/projects.html#test-projects

Signed-off-by: Florent Benoit <fbenoit@redhat.com>
This commit is contained in:
Florent Benoit 2025-11-02 16:32:09 +01:00 committed by Florent BENOIT
parent 89bbf68b52
commit 0ed93e6af1

View file

@ -25,11 +25,11 @@ const PODMAN_DESKTOP_EXCLUDED = [
];
/**
* vitest workspace configuration for unit tests
* vitest projects configuration for unit tests
*/
export default defineConfig({
test: {
workspace: [
projects: [
'{extensions,packages,tools,storybook,website,scripts}/**/{vitest,vite}.config.{js,ts}',
'!**/builtin/**',
],
@ -37,7 +37,6 @@ export default defineConfig({
reporters: process.env.CI ? [['junit', { includeConsoleOutput: false }], 'default'] : ['default'],
outputFile: process.env.CI ? { junit: 'coverage/junit-results.xml' } : {},
coverage: {
all: true,
clean: true,
excludeAfterRemap: true,
provider: 'v8',