Files
conference-room-booking-system/frontend/noxfile.py
2025-09-19 23:30:13 -04:00

22 lines
455 B
Python

"""Nox sessions for frontend tasks.
Run with `nox -s <session>` from the project root or frontend directory.
"""
import os
from pathlib import Path
import nox
@nox.session(name="jest")
def jest(session: nox.Session) -> None:
"""Run frontend Jest tests using yarn.
Args:
session: The Nox session object.
"""
frontend_dir = Path(__file__).parent
os.chdir(frontend_dir)
session.run("yarn", "run", "jest", external=True)