Skip to content

Commit c905858

Browse files
committed
module path fix
1 parent 49e9371 commit c905858

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

lib/create-runner.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ function createRunner(config, testFile) {
1919
else {
2020
node = process.execPath;
2121
}
22+
var mocha = path.join(__dirname, '..', '..', 'mocha', 'bin', 'mocha');
2223
return spawn(node, [
23-
path.join(__dirname, '..', 'node_modules', 'mocha', 'bin', 'mocha'),
24+
mocha,
2425
'--bail',
2526
'--harmony',
2627
'--no-colors',

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mocha-coderoad",
3-
"version": "0.4.3",
3+
"version": "0.4.4",
44
"description": "mocha test runner & reporter for atom-coderoad",
55
"main": "lib/runner.js",
66
"scripts": {

src/create-runner.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ export function createRunner(config, testFile) {
2323
}
2424

2525
// let runnerOptions = []; // setRunnerOptions(config);
26+
let mocha = path.join(__dirname, '..', '..', 'mocha', 'bin', 'mocha');
2627

2728
// 3. spawn child process calling mocha test runner
2829
return spawn(node, [
2930
// into shared node_modules directory
30-
path.join(__dirname, '..', 'node_modules', 'mocha', 'bin', 'mocha'),
31+
mocha,
3132
'--bail',
3233
'--harmony',
3334
'--no-colors',

0 commit comments

Comments
 (0)