Skip to content

Commit 94af0b5

Browse files
committed
feat(app): run unit tests when test scripts are changed
When files in the test folder are updated, run karma
1 parent cd264e4 commit 94af0b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: templates/common/Gruntfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ module.exports = function (grunt) {
2323
tasks: ['coffee:dist']
2424
},
2525
coffeeTest: {
26-
files: ['test/spec/{,*/}*.coffee'],
27-
tasks: ['coffee:test']
26+
files: ['test/spec/{,*/}*.{coffee,js}'],
27+
tasks: ['coffee:test', 'karma']
2828
},<% if (compassBootstrap) { %>
2929
compass: {
3030
files: ['<%%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],

0 commit comments

Comments
 (0)