Skip to content

Commit

Permalink
Update eslint-ava-rule-tester to v5 (#2251)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored Jan 11, 2024
1 parent 41ac422 commit bb9e788
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"chalk": "^5.3.0",
"enquirer": "^2.4.1",
"eslint": "^8.56.0",
"eslint-ava-rule-tester": "^4.2.0",
"eslint-ava-rule-tester": "^5.0.1",
"eslint-doc-generator": "^1.6.1",
"eslint-plugin-eslint-plugin": "^5.2.1",
"eslint-plugin-internal-rules": "file:./scripts/internal-rules/",
Expand Down
4 changes: 2 additions & 2 deletions test/utils/test.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from 'node:path';
import url from 'node:url';
import test from 'ava';
import avaRuleTester from 'eslint-ava-rule-tester';
import AvaRuleTester from 'eslint-ava-rule-tester';
import {loadRule} from '../../rules/utils/rule.js';
import SnapshotRuleTester from './snapshot-rule-tester.mjs';
import defaultOptions from './default-options.mjs';
Expand Down Expand Up @@ -83,7 +83,7 @@ class Tester {

runTest(tests) {
const {beforeAll, testerOptions = {}, valid, invalid} = tests;
const tester = avaRuleTester(test, {
const tester = new AvaRuleTester(test, {
...testerOptions,
parserOptions: {
...defaultOptions.parserOptions,
Expand Down

0 comments on commit bb9e788

Please sign in to comment.