Add forceReload to reload all imported modules #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Jest tests | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
name: Run jest tests on ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: [18.x, 21.x] | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Run Test on Ubuntu | |
if: matrix.os == 'ubuntu-latest' | |
run: npm run jest | |
- name: Run Test on Windows | |
if: matrix.os == 'windows-latest' | |
run: npm run jest:windows |