mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-04-21 09:37:22 +00:00
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:
parent
89bbf68b52
commit
0ed93e6af1
1 changed files with 2 additions and 3 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue