Skip to content

chore(test): migrate from Karma to Jest and add CI jobs and mappings #32

chore(test): migrate from Karma to Jest and add CI jobs and mappings

chore(test): migrate from Karma to Jest and add CI jobs and mappings #32

Workflow file for this run

name: CI
on:
pull_request:
push:
jobs:
test-core:
name: Core Jest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 20
cache: 'npm'
- name: Install
run: npm ci
- name: Build (generate testing artifacts)
run: npm run build -- --ci
- name: Run Jest (core)
run: npm run test.jest
test-bundler:
name: Bundler Jest
runs-on: ubuntu-latest
needs: test-core
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 20
cache: 'npm'
- name: Install
run: npm ci
- name: Build core (required by bundler job)
run: npm run build -- --ci
- name: Build bundler artifacts
run: npm run --prefix test/bundler build
- name: Run Bundler tests
run: npm run test.bundler