Patrick Steele-Idem b25f67fda9 Code size reduction
2017-05-19 16:03:19 -06:00

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);