UNPKG

603 BJavaScriptView Raw
1"use strict";
2/**
3 * @module Core
4 */
5/*
6 * japa
7 *
8 * (c) Harminder Virk <virk@adonisjs.com>
9 *
10 * For the full copyright and license information, please view the LICENSE
11 * file that was distributed with this source code.
12*/
13const SlimRunner_1 = require("./src/SlimRunner");
14const nextTick = typeof (setImmediate) !== 'undefined' ? setImmediate : process.nextTick;
15nextTick(function cb() {
16 (0, SlimRunner_1.run)()
17 .then(() => {
18 process.exit(0);
19 })
20 .catch((error) => {
21 console.log(error);
22 process.exit(1);
23 });
24});
25module.exports = SlimRunner_1.test;