File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import {
1818 hasFailed ,
1919 hasFailedSnapshot ,
2020 isCI ,
21+ isDeno ,
2122 isNode ,
2223 relativePath ,
2324 toArray ,
@@ -75,7 +76,7 @@ export abstract class BaseReporter implements Reporter {
7576 private _offUnhandledRejection ?: ( ) => void
7677
7778 constructor ( options : BaseOptions = { } ) {
78- this . isTTY = options . isTTY ?? ( isNode && process . stdout ?. isTTY && ! isCI )
79+ this . isTTY = options . isTTY ?? ( ( isNode || isDeno ) && process . stdout ?. isTTY && ! isCI )
7980 this . registerUnhandledRejection ( )
8081 }
8182
Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ export const isNode: boolean
33 && typeof process . stdout < 'u'
44 && ! process . versions ?. deno
55 && ! globalThis . window
6- export const isWindows = isNode && process . platform === 'win32'
6+ export const isDeno : boolean
7+ = typeof process < 'u'
8+ && typeof process . stdout < 'u'
9+ && process . versions ?. deno !== undefined
10+ export const isWindows = ( isNode || isDeno ) && process . platform === 'win32'
711export const isBrowser : boolean = typeof window !== 'undefined'
812export { isCI , provider as stdProvider } from 'std-env'
You can’t perform that action at this time.
0 commit comments