blob: 88b1f75fcc9a4685823136d4b0617178499b418c [file] [log] [blame]
import gulp from 'gulp';
import path from 'path';
import { Server } from 'karma';
const tests = ['../../web/gui/src/main/webapp/tests/**/*.js'];
const test = () => {
new Server({
configFile: path.join(__dirname, '../../../../../', '/web/gui/src/main/webapp/tests/karma.conf.js'),
singleRun: true
}, () => { console.log('done') }).start();
};
const tasks = () => {
gulp.task('pre-test', () => preTest());
gulp.task('test', () => test());
};
export default tasks();