Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion app/templates/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,8 @@ module.exports = function (grunt) {
mochaTest: {
options: {
reporter: 'spec',
require: 'mocha.conf.js'
require: 'mocha.conf.js',
timeout: 5000 // set default mocha spec timeout
},
unit: {
src: ['server/**/*.spec.js']
Expand Down
8 changes: 7 additions & 1 deletion app/templates/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ module.exports = function(config) {

// testing framework to use (jasmine/mocha/qunit/...)<% if (filters.jasmine) { %>
frameworks: ['jasmine'],<% } if (filters.mocha) { %>
frameworks: ['mocha', 'chai', 'sinon-chai', 'chai-as-promised', 'chai-things'],<% } %>
frameworks: ['mocha', 'chai', 'sinon-chai', 'chai-as-promised', 'chai-things'],

client: {
mocha: {
timeout: 5000 // set default mocha spec timeout
}
},<% } %>

// list of files / patterns to load in the browser
files: [
Expand Down