Visitar URL original
USWDS - Core: Fix test task to include all JavaScript test files by aduth · Pull Request #6171 · uswds/uswds · GitHub
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions tasks/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ const mochaConfig = {
module.exports = {
// run unit test.
unitTests() {
return src("packages/usa-*/**/*.spec.js").pipe(mocha(mochaConfig));
return src([
// Component tests.
"packages/usa-*/**/*.spec.js",
// Core utils tests.
"packages/uswds-*/**/*.spec.js",
// SASS unit tests, run separately.
"!packages/uswds-core/src/test/sass.spec.js",
]).pipe(mocha(mochaConfig));
},

sassTests() {
return src("packages/uswds-core/src/test/sass.spec.js")
.pipe(mocha());
return src("packages/uswds-core/src/test/sass.spec.js").pipe(mocha());
},
};