Skip to content

Commit

Permalink
[INTERNAL] Fix VisitorKeys consistency test
Browse files Browse the repository at this point in the history
The ES2023 support change (via #1034) missed to update the ECMA version
to activate the VisitorKeys consistency test.

(cherry picked from commit 8afc5c1)
  • Loading branch information
matz3 committed Nov 4, 2024
1 parent 85409cb commit 3542b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lib/lbt/analyzer/JSModuleAnalyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ test("Check for consistency between VisitorKeys and EnrichedVisitorKeys", (t) =>
// Only then, the if-clause below should be changed to the new ecmaVersion to prevent the test
// from failing when new VisitorKeys are available via espree.

if (ecmaVersion > 2022) {
if (ecmaVersion > 2023) {
Object.keys(VisitorKeys).forEach( (type) => {
// Ignore deprecated keys:
// - ExperimentalSpreadProperty => SpreadElement
Expand Down

0 comments on commit 3542b9f

Please sign in to comment.