Skip to content
This repository was archived by the owner on Oct 28, 2020. It is now read-only.

Commit 1dbaab0

Browse files
author
TED Vortex (Teodor Eugen Dutulescu)
authored
Merge pull request #51 from superleap/gils50-esdoc-test-documentation
fix(esdoc): added test documentation
2 parents da2799d + b920543 commit 1dbaab0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

gulpfile.babel.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const paths = {
2121
"manual": "./build/manual",
2222
"src": "./src/*",
2323
"srcEsdoc": "./src",
24-
"srcTest": "./test/**/*.js",
24+
"srcTest": "./test",
2525
"compile": "./lib"
2626
};
2727

@@ -115,7 +115,11 @@ gulp.task(`doc`, [`manual`], () => {
115115
"example": [`${paths.manual}/examples.md`],
116116
"changelog": [`${paths.manual}/changelog.md`]
117117
},
118-
"lint": true
118+
"lint": true,
119+
"test": {
120+
"type": "mocha",
121+
"source": paths.srcTest
122+
}
119123
};
120124

121125
return gulp.src(paths.srcEsdoc)
@@ -189,7 +193,7 @@ gulp.task(`setup`, [`clean`], () => {
189193
});
190194

191195
gulp.task(`test:code`, () => {
192-
return gulp.src([paths.srcTest])
196+
return gulp.src([`${paths.srcTest}/**/*.js`])
193197
.pipe(gp.spawnMocha({
194198
"env": {
195199
"NODE_ENV": 'test'

0 commit comments

Comments
 (0)