Skip to content

fix(frontend): prevent error when inputRef is undefined #1223

fix(frontend): prevent error when inputRef is undefined

fix(frontend): prevent error when inputRef is undefined #1223

name: Frontend Pull Requests
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- frontend/**
- .github/workflows/frontend-pull-request.yml
permissions:
contents: read
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: frontend/.nvmrc
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run unit tests
run: npm run test:unit -- --passWithNoTests