Skip to content

Commit ecf2415

Browse files
committed
chore(ts-tests): clean before tests
Fixes aurelia#684
1 parent 8997a6f commit ecf2415

File tree

2 files changed

+4
-4
lines changed
  • skeleton-typescript/build/tasks
  • skeleton-typescript-aspnetcore/src/skeleton/build/tasks

2 files changed

+4
-4
lines changed

skeleton-typescript-aspnetcore/src/skeleton/build/tasks/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var Karma = require('karma').Server;
44
/**
55
* Run test once and exit
66
*/
7-
gulp.task('test', function (done) {
7+
gulp.task('test', ['clean'], function (done) {
88
new Karma({
99
configFile: __dirname + '/../../karma.conf.js',
1010
singleRun: true
@@ -14,7 +14,7 @@ gulp.task('test', function (done) {
1414
/**
1515
* Watch for file changes and re-run tests on each change
1616
*/
17-
gulp.task('tdd', function (done) {
17+
gulp.task('tdd', ['clean'], function (done) {
1818
new Karma({
1919
configFile: __dirname + '/../../karma.conf.js'
2020
}, done).start();

skeleton-typescript/build/tasks/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var Karma = require('karma').Server;
44
/**
55
* Run test once and exit
66
*/
7-
gulp.task('test', function (done) {
7+
gulp.task('test', ['clean'], function (done) {
88
new Karma({
99
configFile: __dirname + '/../../karma.conf.js',
1010
singleRun: true
@@ -14,7 +14,7 @@ gulp.task('test', function (done) {
1414
/**
1515
* Watch for file changes and re-run tests on each change
1616
*/
17-
gulp.task('tdd', function (done) {
17+
gulp.task('tdd', ['clean'], function (done) {
1818
new Karma({
1919
configFile: __dirname + '/../../karma.conf.js'
2020
}, done).start();

0 commit comments

Comments
 (0)