mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
15 lines
477 B
JavaScript
15 lines
477 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');
|
|
const mochaPath = path.join(rootDir, 'node_modules/.bin/mocha');
|
|
|
|
var result = spawnSync(mochaPath, ['--ui', 'bdd', '--reporter', 'spec', testDir], {
|
|
stdio: 'inherit'
|
|
});
|
|
|
|
process.exit(result.status);
|