migrate tests to Jest

This commit is contained in:
Alexander Zobnin
2017-10-30 19:59:28 +03:00
parent 89b5c9e135
commit e80a814880
26 changed files with 346 additions and 376 deletions

View File

@@ -112,18 +112,6 @@ module.exports = function(grunt) {
}
},
mochaTest: {
test: {
options: {
reporter: 'spec'
},
src: [
'dist/test/datasource-zabbix/specs/test-main.js',
'dist/test/datasource-zabbix/specs/*_specs.js'
]
}
},
sass: {
options: {
sourceMap: true
@@ -178,8 +166,7 @@ module.exports = function(grunt) {
'copy',
'jshint',
'jscs',
'babel',
'mochaTest'
'babel'
]);
grunt.registerTask('watchTask', [
@@ -193,12 +180,11 @@ module.exports = function(grunt) {
'jscs'
]);
grunt.registerTask('test', [
grunt.registerTask('buildTest', [
'clean:test',
'clean:tmp',
'babel:distTestNoSystemJs',
'babel:distTestsSpecsNoSystemJs',
'mochaTest'
'babel:distTestsSpecsNoSystemJs'
]);
grunt.registerTask('bench', [