Skip to content
Snippets Groups Projects
Commit a061894e authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Fixed gulp test rule: chdir to build to test

Related: simcaq/SCRUM#68
parent 674d9959
Branches
Tags
1 merge request!21Issue/68
Pipeline #
......@@ -59,6 +59,7 @@ gulp.task('doc', (cb) => {
});
gulp.task('test', ['build'], () => {
process.chdir('build');
gulp.src('test/test.js', {read: false})
.pipe(mocha())
.once('error', () => {
......
......@@ -12,7 +12,9 @@ const expect = chai.expect;
const should = chai.should(); // actually call the function
const server = require('../libs/app');
const libs = `${process.cwd()}/libs`;
const server = require(`${libs}/app`);
chai.use(chaiHttp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment