فهرست منبع

Merge pull request #19560 from gero3/makeRunningUnitTestsBearable

Update unit command to search in unit/build folder
Mr.doob 5 سال پیش
والد
کامیت
b6b8fd7abc
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      test/package.json

+ 2 - 1
test/package.json

@@ -4,7 +4,7 @@
   "description": "This package hiding test dependincies from main repo because puppeteer is pretty big.",
   "scripts": {
     "dev": "rollup -c rollup.unit.config.js -w -m inline",
-    "unit": "rollup -c rollup.unit.config.js && qunit -r failonlyreporter unit/build/three.source.unit.js"
+    "unit": "rollup -c rollup.unit.config.js && rimraf node_modules/three && qunit -r failonlyreporter unit/build/three.source.unit.js"
   },
   "devDependencies": {
     "failonlyreporter": "^1.0.0",
@@ -13,6 +13,7 @@
     "pixelmatch": "^5.2.0",
     "puppeteer": "3.1.0",
     "qunit": "^2.10.0",
+    "rimraf": "^3.0.2",
     "serve-handler": "^6.1.2"
   },
   "license": "MIT"