mirror of
https://gitlab.silvrtree.co.uk/martind2000/ft-webplatform.git
synced 2025-02-11 17:09:16 +00:00
18 lines
541 B
JavaScript
18 lines
541 B
JavaScript
|
import gulp from 'gulp';
|
||
|
import jest from 'gulp-jest';
|
||
|
import {CLIOptions} from 'aurelia-cli';
|
||
|
|
||
|
export default function monitorFeeds() {
|
||
|
let focusedTest = CLIOptions.getFlagValue('focused-test');
|
||
|
let jestConfig = {
|
||
|
config: require('../../test/jest/jest-integration.json')
|
||
|
};
|
||
|
if (focusedTest) {
|
||
|
focusedTest = focusedTest.replace(/(.spec)?.js/g, '');
|
||
|
jestConfig.config.testRegex = `.*${focusedTest}.*.spec.js$`;
|
||
|
}
|
||
|
return gulp.src('src').pipe(jest({
|
||
|
config: require('../../test/jest/jest-integration.json')
|
||
|
}));
|
||
|
}
|