Ver Fonte

Remove `--` from test scripts (#33622)

GitOrigin-RevId: a33f09fb9924e4d02de6db0550c22585b2d331b6
Alf Eaton há 3 meses atrás
pai
commit
5e94f8abce
2 ficheiros alterados com 4 adições e 4 exclusões
  1. 1 1
      services/web/bin/test_unit_run_dir
  2. 3 3
      services/web/package.json

+ 1 - 1
services/web/bin/test_unit_run_dir

@@ -13,4 +13,4 @@ fi
 
 echo "Running unit tests in directory: $*"
 
-npm run test:unit -- "${vitest_args[@]}"
+exec yarn run vitest run "${vitest_args[@]}"

+ 3 - 3
services/web/package.json

@@ -12,9 +12,9 @@
     "test:acceptance:app:debug": "yarn run test:acceptance:debug:run_dir -- test/acceptance/src",
     "test:acceptance:debug:run_dir": "mocha --recursive --timeout 25000 --grep=${MOCHA_GREP:-} --require test/acceptance/bootstrap.js --inspect=0.0.0.0:19999 --inspect-brk",
     "test:unit:run_dir": "bin/test_unit_run_dir",
-    "test:unit:all": "yarn run test:unit:run_dir -- test/unit/src modules/*/test/unit/src",
-    "test:unit:all:silent": "yarn run test:unit:all -- --reporter dot",
-    "test:unit:app": "yarn run test:unit:run_dir -- test/unit/src",
+    "test:unit:all": "yarn run test:unit:run_dir test/unit/src modules/*/test/unit/src",
+    "test:unit:all:silent": "yarn run test:unit:all --reporter dot",
+    "test:unit:app": "yarn run test:unit:run_dir test/unit/src",
     "test:unit": "vitest run",
     "test:unit:parallel": "vitest run --project=Parallel",
     "test:unit:sequential": "vitest run --project=Sequential",