Skip to content

Commit 5e38852

Browse files
committed
Switch away from PhantomJS for running Jasmine test, switch to Puppeteer
1 parent 7cccbb1 commit 5e38852

File tree

10 files changed

+2311
-207
lines changed

10 files changed

+2311
-207
lines changed

Gruntfile.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
module.exports = function (grunt) {
33
grunt.initConfig({
44
pkg: grunt.file.readJSON('package.json'),
5+
connect: {
6+
server: {
7+
options: {
8+
port: 8765,
9+
hostname: '127.0.0.1'
10+
}
11+
}
12+
},
513
jasmine: {
614
src: [
715
'build/dependencies/*.js',
@@ -17,6 +25,7 @@ module.exports = function (grunt) {
1725
'src/index.js'
1826
],
1927
options: {
28+
host: 'http://127.0.0.1:8765/',
2029
specs: 'test/specs/*.js',
2130
vendor: [
2231
'node_modules/imagediff/imagediff.js',
@@ -182,6 +191,7 @@ module.exports = function (grunt) {
182191
});
183192

184193
grunt.loadNpmTasks('grunt-contrib-concat');
194+
grunt.loadNpmTasks('grunt-contrib-connect');
185195
grunt.loadNpmTasks('grunt-contrib-jasmine');
186196
grunt.loadNpmTasks('grunt-contrib-jshint');
187197
grunt.loadNpmTasks('grunt-contrib-uglify');
@@ -199,6 +209,7 @@ module.exports = function (grunt) {
199209

200210
grunt.registerTask('test', [
201211
'jshint',
212+
'connect',
202213
'jasmine',
203214
'regex-check'
204215
]);

0 commit comments

Comments
 (0)