newlogic
Version:
Circuit Builder Desktop Application (like mmlogic) made with Electron + React Typescript. Compatible with Windows, Mac and Linux.
12 lines (8 loc) • 367 B
JavaScript
const spawn = require('cross-spawn');
const path = require('path');
const s = `\\${path.sep}`;
const pattern = process.argv[2] === 'e2e'
? `test${s}e2e${s}.+\\.spec\\.tsx?`
: `test${s}(?!e2e${s})[^${s}]+${s}.+\\.spec\\.tsx?$`;
const result = spawn.sync(path.normalize('./node_modules/.bin/jest'), [pattern], { stdio: 'inherit' });
process.exit(result.status);