Skip to content

Commit b2bf591

Browse files
ota-meshiljharb
authored andcommittedAug 17, 2021
[Tests] cli: test the current plugin, not an installed one
1 parent ce8b203 commit b2bf591

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎tests/src/cli.js

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { expect } from 'chai';
77
import { CLIEngine } from 'eslint';
88
import eslintPkg from 'eslint/package.json';
99
import semver from 'semver';
10+
import * as importPlugin from '../../src/index';
1011

1112
describe('CLI regression tests', function () {
1213
describe('issue #210', function () {
@@ -20,6 +21,7 @@ describe('CLI regression tests', function () {
2021
'named': 2,
2122
},
2223
});
24+
cli.addPlugin('eslint-plugin-import', importPlugin);
2325
});
2426
it("doesn't throw an error on gratuitous, erroneous self-reference", function () {
2527
expect(() => cli.executeOnFiles(['./tests/files/issue210.js'])).not.to.throw();
@@ -38,6 +40,7 @@ describe('CLI regression tests', function () {
3840
rulePaths: ['./src/rules'],
3941
ignore: false,
4042
});
43+
cli.addPlugin('eslint-plugin-import', importPlugin);
4144
}
4245
});
4346

0 commit comments

Comments
 (0)
Please sign in to comment.