Files
Robin Malfait a73007388f Ensure playgrounds work + switch to npm workspaces (#2907)
* bump Next in playground

* convert legacy Link after Next.js bump

* update yarn.lock

* switch to npm workspaces

* move `packages/playground-*` to `playgrounds/*`

* use `npm` instead of `yarn`

* sync package-lock.json

* use node 20 for insiders releases
2024-01-03 14:26:12 +01:00

21 lines
312 B
Bash
Executable File

#!/usr/bin/env bash
set -e
jestArgs=()
# Add default arguments
jestArgs+=("--passWithNoTests")
# Add arguments based on environment variables
if ! [ -z "$CI" ]; then
jestArgs+=("--maxWorkers=4")
jestArgs+=("--ci")
fi
# Passthrough arguments and flags
jestArgs+=($@)
# Execute
npx jest "${jestArgs[@]}"