Skip to content

Commit 5640774

Browse files
committed
fix ci
1 parent 4f2584b commit 5640774

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"setup": "git submodule update --init && cd test/fixtures/eslint && npm install",
7373
"pretest": "run-s build lint",
7474
"test": "npm run -s test:mocha",
75-
"test:mocha": "mocha --require ts-node/register \"test/*.js\" --reporter dot --timeout 60000",
75+
"test:mocha": "mocha --require ts-node/register \"test/*.js\" --reporter dot --timeout 60000",
7676
"test:cover": "nyc mocha \"test/*.js\" --reporter dot --timeout 60000",
7777
"test:debug": "mocha --require ts-node/register/transpile-only \"test/*.js\" --reporter dot --timeout 60000",
7878
"preupdate-fixtures": "npm run -s build",

test/espree.js

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ function parentMain() {
1010

1111
describe("Loading espree from ESLint", () => {
1212
it("should load espree from the ESLint location.", (done) => {
13-
spawn(process.execPath, [__filename, "--child1"], {
14-
stdio: "inherit",
15-
})
13+
spawn(
14+
process.execPath,
15+
["--require", "ts-node/register", __filename, "--child1"],
16+
{
17+
stdio: "inherit",
18+
},
19+
)
1620
.on("error", done)
1721
.on("exit", (code) =>
1822
code
@@ -21,9 +25,13 @@ function parentMain() {
2125
)
2226
})
2327
it("should load espree from the ESLint location.", (done) => {
24-
spawn(process.execPath, [__filename, "--child1"], {
25-
stdio: "inherit",
26-
})
28+
spawn(
29+
process.execPath,
30+
["--require", "ts-node/register", __filename, "--child1"],
31+
{
32+
stdio: "inherit",
33+
},
34+
)
2735
.on("error", done)
2836
.on("exit", (code) =>
2937
code
@@ -38,9 +46,13 @@ function parentMain() {
3846
execSync("npm i", {
3947
stdio: "inherit",
4048
})
41-
spawn(process.execPath, [__filename, "--child2"], {
42-
stdio: "inherit",
43-
})
49+
spawn(
50+
process.execPath,
51+
["--require", "ts-node/register", __filename, "--child2"],
52+
{
53+
stdio: "inherit",
54+
},
55+
)
4456
.on("error", done)
4557
.on("exit", (code) =>
4658
code

0 commit comments

Comments
 (0)