Replies: 2 comments
This comment was marked as spam.
This comment was marked as spam.
-
|
The problem is that Three approaches: 1. Switch to test: {
pool: 'forks',
isolate: false,
}
2. Use
// vitest.globalSetup.ts
import type { TestProject } from 'vitest/node'
export default function setup(project: TestProject) {
project.provide('vuetifyOptions', vuetifyOptions)
}
declare module 'vitest' {
export interface ProvidedContext { vuetifyOptions: any }
}Then in 3. Accept per-worker recreation If Vuetify setup isn't actually expensive, recreating it per worker may not matter. Your |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
setup file:
config:
I have this configuration for my vitest and nuxt project but it creates new vuetify instance always with pool: threads, tried maxWorkers:1 but not working also I can isolate:false and due to this my setup is taking 20 mins for 1200+ files, can anyone help to make it singleton or executed first this then starts with test cases?
Beta Was this translation helpful? Give feedback.
All reactions