Skip to content

Commit b09acba

Browse files
committed
Run jest using npm exec
`npm bin` was removed: npm/cli#5459 Signed-off-by: Andrew Haines <[email protected]>
1 parent af75d5c commit b09acba

File tree

1 file changed

+2
-2
lines changed
  • packages/test/scripts

1 file changed

+2
-2
lines changed

packages/test/scripts/jest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -o nounset
44
set -o pipefail
55

66
node_version=$(node --version)
7-
npm_bin=$(npm bin)
7+
npm=$(which npm)
88

99
node_command=(node)
1010

@@ -16,4 +16,4 @@ esac
1616

1717
export NODE_EXTRA_CA_CERTS=servers/tmp/certificates/server.root.crt
1818

19-
exec "${node_command[@]}" "${npm_bin}/jest" "$@"
19+
exec "${node_command[@]}" "${npm}" exec -- jest "$@"

0 commit comments

Comments
 (0)