Skip to content

Commit

Permalink
Corrections for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jblandry committed Feb 5, 2020
1 parent a984afc commit cea403b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
language: node_js
node_js:
- node
- 12
9 changes: 8 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
const tester = require('@absolunet/tester');


const JS_MULTI = [
`*.js`,
`ressources/docs-builder/**/*.js`,
`test/**/*.js`
];

const EXCLUDE_MULTI = [
`!docs/static/**`,
`!packages/**`,
Expand All @@ -20,12 +26,13 @@ const EXCLUDE_SUB = [
`!boilerplate/components/**/scripts/vendor/**`,
`!boilerplate/components/**/styles/vendor/**`,
`!boilerplate/node_modules/**`,
`!boilerplate/node_modules/@absolunet/nwayo-workflow/**`,
`!boilerplate/vendor/node_modules/**`
];


tester.npmPackage.validateMulti({
js: tester.all.js.concat(EXCLUDE_MULTI),
js: JS_MULTI.concat(EXCLUDE_MULTI),
json: tester.all.json.concat(EXCLUDE_MULTI),
yaml: tester.all.yaml.concat(EXCLUDE_MULTI),
bash: tester.all.bash.concat(EXCLUDE_MULTI),
Expand Down

0 comments on commit cea403b

Please sign in to comment.