diff --git a/Gruntfile.js b/Gruntfile.js index 02bba034..2b1b1c92 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -43,7 +43,8 @@ module.exports = function(grunt) { }, clean: { - data: ['temp'] + data: ['temp'], + tests: ['tests/zones'], }, exec: { diff --git a/tasks/data.js b/tasks/data.js index 37be2001..1b5166c3 100644 --- a/tasks/data.js +++ b/tasks/data.js @@ -6,6 +6,9 @@ module.exports = function (grunt) { if (!grunt.option('dirty-run')) { grunt.task.run('clean:data'); + if (version === 'latest') { + grunt.task.run('clean:tests'); + } } grunt.task.run([