The number of runtimes that are javascript or typescript compatible is growing.
Our tests assume nodejs as it's the most popular, but we're seeing Deno turn up in all kinds of places like Cloudflare workers (I think), and bun is also shaping up into a plausible alternative.
Our tests use jest right now via node - how would we support the other tools if we wanted to demonstrate wider support?
Here's our current unit test github action that runs on every PR or push to master:
name: Unit tests
on:
push:
pull_request:
# snip
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm ci
- name: Verify lint
run: npm run lint
- name: Run unit tests
run: npm test
The number of runtimes that are javascript or typescript compatible is growing.
Our tests assume nodejs as it's the most popular, but we're seeing Deno turn up in all kinds of places like Cloudflare workers (I think), and bun is also shaping up into a plausible alternative.
Our tests use jest right now via node - how would we support the other tools if we wanted to demonstrate wider support?
Here's our current unit test github action that runs on every PR or push to master: