File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,21 @@ import { Readable, Writable } from 'node:stream'
8
8
import { fileURLToPath } from 'node:url'
9
9
import { dirname , resolve } from 'pathe'
10
10
import { x } from 'tinyexec'
11
- import { afterEach , onTestFinished , type WorkerGlobalState } from 'vitest'
11
+ import { afterEach , onTestFinished , vi , type WorkerGlobalState } from 'vitest'
12
12
import { startVitest } from 'vitest/node'
13
13
import { getCurrentTest } from 'vitest/suite'
14
14
import { Cli } from './cli'
15
15
16
+ vi . mock ( 'tinyrainbow' , async ( importOriginal ) => {
17
+ const { getDefaultColors, createColors, isSupported } = await importOriginal < any > ( )
18
+ return {
19
+ default : getDefaultColors ( ) ,
20
+ getDefaultColors,
21
+ createColors,
22
+ isSupported,
23
+ }
24
+ } )
25
+
16
26
interface VitestRunnerCLIOptions {
17
27
std ?: 'inherit'
18
28
fails ?: boolean
You can’t perform that action at this time.
0 commit comments