chore: Add npm test benchmark script

This commit is contained in:
Paul Gauthier 2024-12-17 19:07:08 -08:00 committed by Paul Gauthier (aider)
parent 4167743a34
commit 6b4982d75b

12
benchmark/npm-test.sh Executable file
View file

@ -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