mirror of
https://github.com/xlorepdarkhelm/numinar-coding-project.git
synced 2026-09-08 07:58:25 -04:00
22 lines
455 B
Python
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)
|