From f916ee0c708d4452ee2c73d8d7fc337123d98541 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Thu, 28 Jan 2021 18:19:38 +0100 Subject: [PATCH] Cleanup artifacts before running the tests --- app/package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/package.json b/app/package.json index 62ef99c50..d9947cabc 100644 --- a/app/package.json +++ b/app/package.json @@ -7,9 +7,10 @@ "build:prod": "webpack --mode=production", "build:test": "tsc --build tsconfig.test.json", "clean": "rimraf build", + "clean:artifacts": "rimraf artifacts", "prepublishOnly": "yarn run build", - "test": "jest", - "test:pwdebug": "PWDEBUG=1 jest", + "test": "jlpm run clean:artifacts && jest", + "test:pwdebug": "jlpm run clean:artifacts && PWDEBUG=1 jlpm run test", "test:cov": "jest --collect-coverage", "test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand", "test:debug:watch": "node --inspect-brk node_modules/.bin/jest --runInBand --watch",