Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update eslint-ava-rule-tester to v5 #2251

Merged
merged 2 commits into from Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
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
@@ -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