Skip to content

Commit eda8e21

Browse files
Babel option rename (blacklist -> denylist)
1 parent d91ab8e commit eda8e21

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/babel-plugin-jest-hoist/src

packages/babel-plugin-jest-hoist/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)