UNPKG

japa

Version:

Lean test runner for Node.js

26 lines (25 loc) 603 B
"use strict"; /** * @module Core */ /* * 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 SlimRunner_1 = require("./src/SlimRunner"); const nextTick = typeof (setImmediate) !== 'undefined' ? setImmediate : process.nextTick; nextTick(function cb() { (0, SlimRunner_1.run)() .then(() => { process.exit(0); }) .catch((error) => { console.log(error); process.exit(1); }); }); module.exports = SlimRunner_1.test;