mirror of
https://github.com/marko-js/marko.git
synced 2026-01-18 14:55:13 +00:00
15 lines
534 B
JavaScript
15 lines
534 B
JavaScript
const path = require('path');
|
|
const rootDir = path.join(__dirname, '../../../');
|
|
const env = require(path.join(rootDir, 'env'));
|
|
const isDebug = env.isDebug;
|
|
|
|
const testDir = path.join(rootDir, isDebug ? 'test' : 'test-dist');
|
|
const spawnSync = require('child_process').spawnSync;
|
|
const mochaPath = path.join(rootDir, 'node_modules/.bin/mocha');
|
|
|
|
var result = spawnSync(mochaPath, ['--ui', 'bdd', '--reporter', 'spec', '--timeout', '3000', path.join(testDir, '**/*.test.js')], {
|
|
stdio: 'inherit'
|
|
});
|
|
|
|
process.exit(result.status);
|