My tests are passing successfully, but the process exits with code 1. I am unsure of what could be causing this issue. Below is a link to my GitHub actions file as well as an image demonstrating the tests passing with an exit code.
Interestingly, when I run individual tests using -t, they pass without any issues. However, all tests result in an exit code of 1.
on:
push:
branches:
- main
- staging
- dev
pull_request:
branches:
- main
- staging
- dev
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Read nvmrc
id: nvmrc
uses: browniebroke/read-nvmrc-action@v1
- name: Set up node
uses: actions/setup-node@v2
with:
node-version: '${{ steps.nvmrc.outputs.node_version }}'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run tests
run: yarn test