@@ -11,35 +11,35 @@ describe(`isTTY`, () => {
11
11
12
12
it ( `returns true if not on ci & TTY is enabled` , ( ) => {
13
13
process . stdout . isTTY = true
14
- jest . mock ( `ci-info ` , ( ) => {
15
- return { isCI : false }
14
+ jest . mock ( `gatsby-core-utils ` , ( ) => {
15
+ return { isCI : ( ) => false }
16
16
} )
17
17
const isTTY = require ( `../is-tty` )
18
18
expect ( isTTY ( ) ) . toBe ( true )
19
19
} )
20
20
21
21
it ( `returns false if not on ci & TTY is disabled` , ( ) => {
22
22
process . stdout . isTTY = false
23
- jest . mock ( `ci-info ` , ( ) => {
24
- return { isCI : false }
23
+ jest . mock ( `gatsby-core-utils ` , ( ) => {
24
+ return { isCI : ( ) => false }
25
25
} )
26
26
const isTTY = require ( `../is-tty` )
27
27
expect ( isTTY ( ) ) . toBe ( false )
28
28
} )
29
29
30
30
it ( `returns false if on ci & TTY is enabled` , ( ) => {
31
31
process . stdout . isTTY = true
32
- jest . mock ( `ci-info ` , ( ) => {
33
- return { isCI : true }
32
+ jest . mock ( `gatsby-core-utils ` , ( ) => {
33
+ return { isCI : ( ) => true }
34
34
} )
35
35
const isTTY = require ( `../is-tty` )
36
36
expect ( isTTY ( ) ) . toBe ( false )
37
37
} )
38
38
39
39
it ( `returns false if on ci & TTY is disabled` , ( ) => {
40
40
process . stdout . isTTY = false
41
- jest . mock ( `ci-info ` , ( ) => {
42
- return { isCI : true }
41
+ jest . mock ( `gatsby-core-utils ` , ( ) => {
42
+ return { isCI : ( ) => true }
43
43
} )
44
44
const isTTY = require ( `../is-tty` )
45
45
expect ( isTTY ( ) ) . toBe ( false )
0 commit comments