pm2/test/e2e/cli/bun.sh
2023-10-06 08:25:25 +02:00

33 lines
576 B
Bash

#!/usr/bin/env bash
SRC=$(cd $(dirname "$0"); pwd)
source "${SRC}/../include.sh"
cd $file_path/interpreter
########### typescript fork test
$pm2 delete all
>typescript.log
$pm2 start echo.ts -o typescript.log --merge-logs
sleep 1.5
grep "Hello Typescript!" typescript.log
spec "Should work on Typescript files in fork mode"
# ########### typescript cluster test
$pm2 delete all
>typescript.log
$pm2 start echo.tsx -o typescript.log --merge-logs
sleep 1.5
grep "Hello Typescript!" typescript.log
spec "Should work on Typescript files in fork mode"
$pm2 delete all