mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Adding nodeunit
This commit is contained in:
+6
-2
@@ -33,6 +33,10 @@ module.exports = function(grunt) {
|
||||
}
|
||||
},
|
||||
|
||||
nodeunit: {
|
||||
all: ['test/unit/*.js']
|
||||
},
|
||||
|
||||
webpack: generateWebpackConfig(),
|
||||
|
||||
watch: {
|
||||
@@ -41,13 +45,13 @@ module.exports = function(grunt) {
|
||||
tasks: ['build']
|
||||
},
|
||||
test: {
|
||||
files: ['lib/**/*.js', 'specs/**/*.js'],
|
||||
files: ['lib/**/*.js', 'test/**/*.js'],
|
||||
tasks: ['test']
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
grunt.registerTask('test', ['webpack:global', 'karma:single']);
|
||||
grunt.registerTask('test', ['webpack:global', 'nodeunit', 'karma:single']);
|
||||
grunt.registerTask('build', ['webpack']);
|
||||
grunt.registerTask('publish', ['clean', 'test', 'build', 'update_json']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user