diff --git a/src/worker/vitest.ts b/src/worker/vitest.ts index a222ef1..053d1e3 100644 --- a/src/worker/vitest.ts +++ b/src/worker/vitest.ts @@ -113,6 +113,9 @@ export class Vitest implements VitestMethods { } public async runTests(specsOrPaths: SerializedTestSpecification[] | string[] | undefined, testNamePattern?: string) { + // @ts-expect-error private method in Vitest <=2.1.5 + await this.ctx.initBrowserProviders?.() + const specs = await this.resolveTestSpecs(specsOrPaths) await this.runTestFiles(specs, testNamePattern, !specs)