From 6b4982d75b786f33b90b49328fc5f44a2337b33d Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 17 Dec 2024 19:07:08 -0800 Subject: [PATCH] chore: Add npm test benchmark script --- benchmark/npm-test.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 benchmark/npm-test.sh diff --git a/benchmark/npm-test.sh b/benchmark/npm-test.sh new file mode 100755 index 000000000..7bae0a9ff --- /dev/null +++ b/benchmark/npm-test.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# exit when any command fails +set -e + +# only do this if the files don't exist ai! +ln -s /npm-install/node_modules /npm-install/package-lock.json . + + +sed -i 's/\bxtest(/test(/g' *.spec.js +npm run test +