File tree Expand file tree Collapse file tree
packages/babel-plugin-jest-hoist/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ const IDVisitor = {
107107 ) {
108108 ids . add ( path ) ;
109109 } ,
110- blacklist : [
110+ denylist : [
111111 'TypeAnnotation' ,
112112 'TSTypeAnnotation' ,
113113 'TSTypeQuery' ,
@@ -135,7 +135,7 @@ FUNCTIONS.mock = args => {
135135
136136 const ids : Set < NodePath < Identifier > > = new Set ( ) ;
137137 const parentScope = moduleFactory . parentPath . scope ;
138- // @ts -expect-error: ReferencedIdentifier and blacklist are not known on visitors
138+ // @ts -expect-error: ReferencedIdentifier and denylist are not known on visitors
139139 moduleFactory . traverse ( IDVisitor , { ids} ) ;
140140 for ( const id of ids ) {
141141 const { name} = id . node ;
@@ -371,7 +371,7 @@ export default function jestHoist(): PluginObj<{
371371 CallExpression : visitCallExpr ,
372372 VariableDeclarator : visitVariableDeclarator ,
373373 // do not traverse into nested blocks, or we'll hoist calls in there out to this block
374- blacklist : [ 'BlockStatement' ] ,
374+ denylist : [ 'BlockStatement' ] ,
375375 } ) ;
376376 callsHoistPoint . remove ( ) ;
377377 varsHoistPoint . remove ( ) ;
You can’t perform that action at this time.
0 commit comments