-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: should support multi exclude dirs (#66)
100% coverage
- Loading branch information
Showing
4 changed files
with
67 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use strict'; | ||
|
||
const assert = require('assert'); | ||
|
||
describe('mocha-test', () => { | ||
it('should work', () => { | ||
assert(true); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
'use strict'; | ||
|
||
const path = require('path'); | ||
const coffee = require('coffee'); | ||
|
||
describe('test/mocha-bin.test.js', () => { | ||
const mochaBin = require.resolve('../bin/mocha.js'); | ||
const cwd = path.join(__dirname, 'fixtures/mocha-test'); | ||
|
||
it('should test with mocha', () => { | ||
return coffee.fork(mochaBin, [ 'test/*.test.js' ], { cwd }) | ||
.debug() | ||
.expect('stdout', /1 passing/) | ||
.expect('code', 0) | ||
.end(); | ||
}); | ||
}); |