File tree 3 files changed +11
-6
lines changed
3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ extension:
5
5
- ts
6
6
node-option :
7
7
- ' loader=ts-node/esm/transpile-only'
8
+ require :
9
+ - ' ./resources/mochaFixture.ts'
Original file line number Diff line number Diff line change
1
+ export async function mochaGlobalSetup ( ) {
2
+ process . env . NODE_ENV = 'development' ;
3
+ }
Original file line number Diff line number Diff line change 1
1
import { inspect } from './inspect.js' ;
2
2
3
3
/* c8 ignore next 3 */
4
- const isProduction =
4
+ const isDevelopment =
5
5
globalThis . process != null &&
6
6
// eslint-disable-next-line no-undef
7
- process . env . NODE_ENV === 'production ' ;
7
+ process . env . NODE_ENV === 'development ' ;
8
8
9
9
/**
10
10
* A replacement for instanceof which includes an error warning when multi-realm
@@ -15,11 +15,8 @@ const isProduction =
15
15
export const instanceOf : ( value : unknown , constructor : Constructor ) => boolean =
16
16
/* c8 ignore next 6 */
17
17
// FIXME: https://github.com/graphql/graphql-js/issues/2317
18
- isProduction
18
+ isDevelopment
19
19
? function instanceOf ( value : unknown , constructor : Constructor ) : boolean {
20
- return value instanceof constructor ;
21
- }
22
- : function instanceOf ( value : unknown , constructor : Constructor ) : boolean {
23
20
if ( value instanceof constructor ) {
24
21
return true ;
25
22
}
@@ -50,6 +47,9 @@ spurious results.`,
50
47
}
51
48
}
52
49
return false ;
50
+ }
51
+ : function instanceOf ( value : unknown , constructor : Constructor ) : boolean {
52
+ return value instanceof constructor ;
53
53
} ;
54
54
55
55
interface Constructor extends Function {
You can’t perform that action at this time.
0 commit comments