File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/transformer/descriptor Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { Scope } from '../../scope/scope';
33import { core } from '../../core/core' ;
44import { GetDescriptor } from '../descriptor' ;
55import { IsTypescriptType } from '../tsLibs/typecriptLibs' ;
6- import { IsNodeType } from '../nodeTypes/nodeTypes ' ;
6+ import { IsNodeJsType } from '../nodeJsTypes/nodeJsTypes ' ;
77import { GetMockCall } from './mockCall' ;
88import {
99 GetMockPropertiesAssignments ,
@@ -52,7 +52,7 @@ export function GetMockPropertiesFromDeclarations(
5252 return false ;
5353 }
5454
55- if ( IsNodeType ( member ) ) {
55+ if ( IsNodeJsType ( member ) ) {
5656 // Workaround to remove any properties coming from @types /node globals
5757 return false ;
5858 }
Original file line number Diff line number Diff line change 11import type * as ts from 'typescript' ;
22
3- const NodeTypesGlobalFile : string = 'node_modules/@types/node/globals.d.ts' ;
3+ const NodeJsTypesGlobalFile : string = 'node_modules/@types/node/globals.d.ts' ;
44
5- export function IsNodeType ( node : ts . Node ) : boolean {
5+ export function IsNodeJsType ( node : ts . Node ) : boolean {
66 const nodeFile : ts . SourceFile = node . getSourceFile ( ) ;
77
88 if ( nodeFile ) {
99 const fileName : string = nodeFile . fileName ;
10- return fileName . includes ( NodeTypesGlobalFile ) ;
10+ return fileName . includes ( NodeJsTypesGlobalFile ) ;
1111 }
1212
1313 return false ;
You can’t perform that action at this time.
0 commit comments