-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
index.js
34 lines (29 loc) · 814 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
'use strict'
/*
* japa
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
const runner = new (require('./src/Runner'))()
const nextTick = typeof (setImmediate) !== 'undefined' ? setImmediate : process.nextTick
nextTick(function () {
runner
.run()
.then(() => {
process.exit(0)
})
.catch(() => {
process.exit(1)
})
})
exports = module.exports = runner.test.bind(runner)
exports.skip = runner.skip.bind(runner)
exports.failing = runner.failing.bind(runner)
exports.group = runner.group.bind(runner)
exports.timeout = runner.timeout.bind(runner)
exports.use = runner.use.bind(runner)
exports.bail = runner.bail.bind(runner)
exports.grep = runner.grep.bind(runner)