Add tests for bun test with preload scripts (#2566)

* Use zsh-compatible syntax in cowsay example

zsh interprets the string !" differently than bash or sh, but we can use single quotes in all of them. See https://unix.stackexchange.com/a/497335/548905.

* Add tests for bun:test with preload scripts

* Look at `stderr` in `bun test --preload` tests
This commit is contained in:
Jake Boone
2023-04-05 18:28:41 -07:00
committed by GitHub
parent b50f3d3f6f
commit 864302a634
2 changed files with 107 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ bun run index.tsx # TS and JSX supported out of the box
bun test # run tests
bun run start # run the `start` script in `package.json`
bun install <pkg> # install a package
bunx cowsay "Hello, world!" # execute a package
bunx cowsay 'Hello, world!' # execute a package
```
## Install