This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
image-juicer/test/runTests.js

10 lines
318 B
JavaScript
Raw Normal View History

const spawn = require('cross-spawn');
const path = require('path');
const s = `\\${path.sep}`;
const pattern = process.argv[2] === 'e2e'
? `test${s}e2e${s}.+\\.spec\\.js`
: `test${s}(?!e2e${s})[^${s}]+${s}.+\\.spec\\.js$`;
spawn.sync(path.normalize('./node_modules/.bin/jest'), [pattern], { stdio: 'inherit' });