From 7bc1bd9b4c480d2394999b131a61711684c84839 Mon Sep 17 00:00:00 2001 From: Cristen Jones Date: Tue, 24 Oct 2023 15:05:08 -0400 Subject: [PATCH] ci: fix test scripts for new Node version `npm bin` appears to no longer be a thing. --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 07b5bfc578..a8caeaaa6f 100644 --- a/package.json +++ b/package.json @@ -22,10 +22,10 @@ "postbuild": "mix compile", "rebuild": "rm -rf _build apps/site/priv/static apps/site/assets/node_modules; npm run install; npm run build", "dialyzer": "mix dialyzer --halt-exit-status", - "cypress:run": "PORT=4004 $(npm bin --prefix apps/site/assets)/cypress run", - "cypress:open": "PORT=4004 $(npm bin --prefix apps/site/assets)/cypress open", - "test:cypress:run": "$(npm bin --prefix apps/site/assets)/start-server-and-test 'MIX_ENV=test PORT=4004 mix phx.server' 4004 cypress:run", - "test:cypress:open": "$(npm bin --prefix apps/site/assets)/start-server-and-test 'MIX_ENV=test PORT=4004 mix phx.server' 4004 cypress:open" + "cypress:run": "PORT=4004 npx --prefix apps/site/assets cypress run", + "cypress:open": "PORT=4004 npx --prefix apps/site/assets cypress open", + "test:cypress:run": "npx --prefix apps/site/assets start-server-and-test 'MIX_ENV=test PORT=4004 mix phx.server' 4004 cypress:run", + "test:cypress:open": "npx --prefix apps/site/assets start-server-and-test 'MIX_ENV=test PORT=4004 mix phx.server' 4004 cypress:open" }, "lint-staged": { "**/*.{ex,exs}": "mix format"