aider/benchmark/npm-test.sh
2024-12-17 19:07:08 -08:00

12 lines
214 B
Bash
Executable file

#!/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