Skip to content

Commit

Permalink
Babel option rename (blacklist -> denylist)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Apr 25, 2023
1 parent d91ab8e commit eda8e21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/babel-plugin-jest-hoist/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const IDVisitor = {
) {
ids.add(path);
},
blacklist: [
denylist: [
'TypeAnnotation',
'TSTypeAnnotation',
'TSTypeQuery',
Expand Down Expand Up @@ -135,7 +135,7 @@ FUNCTIONS.mock = args => {

const ids: Set<NodePath<Identifier>> = new Set();
const parentScope = moduleFactory.parentPath.scope;
// @ts-expect-error: ReferencedIdentifier and blacklist are not known on visitors
// @ts-expect-error: ReferencedIdentifier and denylist are not known on visitors
moduleFactory.traverse(IDVisitor, {ids});
for (const id of ids) {
const {name} = id.node;
Expand Down Expand Up @@ -371,7 +371,7 @@ export default function jestHoist(): PluginObj<{
CallExpression: visitCallExpr,
VariableDeclarator: visitVariableDeclarator,
// do not traverse into nested blocks, or we'll hoist calls in there out to this block
blacklist: ['BlockStatement'],
denylist: ['BlockStatement'],
});
callsHoistPoint.remove();
varsHoistPoint.remove();
Expand Down

0 comments on commit eda8e21

Please sign in to comment.