a73007388f
* 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
21 lines
312 B
Bash
Executable File
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[@]}"
|
|
|