Skip to content

Consider updating our test matrix to support other js runtimes like Deno, or Bun, and so on #176

Description

@mrchrisadams

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions