Skip to content
This repository has been archived by the owner on Apr 13, 2018. It is now read-only.

Commit

Permalink
defined scripts to run unit tests for #16
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Nov 25, 2016
1 parent 3e1dce5 commit 01f933c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ module.exports = yeoman.Base.extend({
name: this.options.projectName,
license: this.options.license,
scripts: {
commitmsg: 'validate-commit-msg'
'tests:unit': 'mocha --recursive test/unit',
test: 'run-s tests:*',
commitmsg: 'validate-commit-msg',
precommit: 'npm test'
},
config: {
commitizen: {
Expand Down
4 changes: 4 additions & 0 deletions test/integration/features/step_definitions/verification.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ module.exports = function () {
assert(devDependencies.includes('chai'));
assert(devDependencies.includes('@travi/any'));

assert.equal(pkg.scripts['tests:unit'], 'mocha --recursive test/unit');
assert.equal(pkg.scripts.test, 'run-s tests:*');
assert.equal(pkg.scripts.precommit, 'npm test');

callback();
});
};

0 comments on commit 01f933c

Please sign in to comment.