Skip to content

Commit 33a77cb

Browse files
test: fix
1 parent ff29fc3 commit 33a77cb

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

test/multiple-instances.test.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { join } from "node:path";
2+
13
import ESLintPlugin from "../src";
24

35
import pack from "./utils/pack";
@@ -10,10 +12,18 @@ describe("multiple instances", () => {
1012
{
1113
plugins: [
1214
new ESLintPlugin({
15+
overrideConfigFile: join(
16+
__dirname,
17+
"./config-for-tests/eslint.config.mjs",
18+
),
1319
ignore: false,
1420
exclude: "error.js",
1521
}),
1622
new ESLintPlugin({
23+
overrideConfigFile: join(
24+
__dirname,
25+
"./config-for-tests/eslint.config.mjs",
26+
),
1727
ignore: false,
1828
exclude: "error.js",
1929
}),
@@ -33,10 +43,18 @@ describe("multiple instances", () => {
3343
{
3444
plugins: [
3545
new ESLintPlugin({
46+
overrideConfigFile: join(
47+
__dirname,
48+
"./config-for-tests/eslint.config.mjs",
49+
),
3650
ignore: false,
3751
exclude: "good.js",
3852
}),
3953
new ESLintPlugin({
54+
overrideConfigFile: join(
55+
__dirname,
56+
"./config-for-tests/eslint.config.mjs",
57+
),
4058
ignore: false,
4159
exclude: "error.js",
4260
}),
@@ -54,10 +72,18 @@ describe("multiple instances", () => {
5472
{
5573
plugins: [
5674
new ESLintPlugin({
75+
overrideConfigFile: join(
76+
__dirname,
77+
"./config-for-tests/eslint.config.mjs",
78+
),
5779
ignore: false,
5880
exclude: "error.js",
5981
}),
6082
new ESLintPlugin({
83+
overrideConfigFile: join(
84+
__dirname,
85+
"./config-for-tests/eslint.config.mjs",
86+
),
6187
ignore: false,
6288
exclude: "good.js",
6389
}),

0 commit comments

Comments
 (0)