forked from scottburch/react-demo
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGruntfile.js
More file actions
44 lines (40 loc) · 1.4 KB
/
Copy pathGruntfile.js
File metadata and controls
44 lines (40 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
module.exports = function (grunt) {
grunt.initConfig({
// pkg: grunt.file.readJSON('package.json'),
jasmine: {
headless: {
options: {
outfile: 'specRunner.html',
specs: 'test/build/**/*Spec.js',
// helpers: ['test/helpers/*Helper.js'],
vendor: [],
// host: 'https://mysite.com',
// '--ignore-ssl-errors': true,
// '--web-security': false,
// timeout: 120000,
// junit: {
// path: './test-reports'
// }
}
},
headed: {
options: {
outfile: 'test/specRunner.html',
specs: 'test/build/**/*Spec.js',
// helpers: ['test/helpers/*Helper.js'],
}
}
},
watch: {
specs: {
files: ['test/build/**/*Spec.js', 'test/helpers/*Helper.js'],
tasks: 'jasmine:headed:build'
}
}
});
grunt.loadNpmTasks('grunt-contrib-jasmine');
// grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['jasmine:headless']);
grunt.registerTask('headless', ['jasmine:headless']);
grunt.registerTask('headed', ['jasmine:headed:build']);
};