Skip to main content

run-api-e2e-tests

Run e2e tests for the API service. Use when the user wants to run API E2E tests.

소스 정보

저장소
novuhq/novu
최근 소스 활동
2026년 1월 26일 10:02
감지된 SKILL.md 언어
영어
스타
40,222
포크
4,520

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
run-api-e2e-tests
description
Run e2e tests for the API service. Use when the user wants to run API E2E tests.
# Run API E2E Tests Run novu-v2 e2e tests for the API service. Tests are located in `apps/api`. ## Running All Tests ```bash pnpm test:e2e:novu-v2 ``` This runs all e2e tests with the novu-v2 pattern across both regular and enterprise test suites. ## Running a Specific Test When the user mentions a specific test or feature: 1. **Find the test file** using Glob with pattern `*.e2e.ts` or `*.e2e-ee.ts` in `apps/api` 2. **Extract the filename** (without extension) - e.g., `trigger-event-preferences.e2e.ts` → `trigger-event-preferences` 3. **Determine the test location:** - Check if the test is in `src/` or `e2e/enterprise/` 4. **Run the appropriate command** based on test location: **For tests in `src/` directory:** ```bash pnpm exec cross-env NODE_ENV=test CI_EE_TEST=true CLERK_ENABLED=true NODE_OPTIONS=--max_old_space_size=8192 mocha --timeout 30000 --retries 3 --grep '#novu-v2' --require ./swc-register.js --exit --file e2e/setup.ts 'src/**/<name-of-the-test>.e2e{,-ee}.ts' ``` **For tests in `e2e/enterprise/` directory:** ```bash pnpm exec cross-env NODE_ENV=test CI_EE_TEST=true CLERK_ENABLED=true NODE_OPTIONS=--max_old_space_size=8192 mocha --timeout 30000 --retries 3 --grep '#novu-v2' --require ./swc-register.js --exit --file e2e/setup.ts 'e2e/enterprise/**/<name-of-the-test>.e2e.ts' ``` Replace `<name-of-the-test>` with the actual test filename (without extension). ## Examples **Running trigger-event-preferences test (in src/):** ```bash # Found: apps/api/src/app/events/e2e/trigger-event-preferences.e2e.ts pnpm exec cross-env NODE_ENV=test CI_EE_TEST=true CLERK_ENABLED=true NODE_OPTIONS=--max_old_space_size=8192 mocha --timeout 30000 --retries 3 --grep '#novu-v2' --require ./swc-register.js --exit --file e2e/setup.ts 'src/**/trigger-event-preferences.e2e{,-ee}.ts' ``` **Running enterprise billing test:** ```bash # Found: apps/api/e2e/enterprise/billing/billing.e2e.ts pnpm exec cross-env NODE_ENV=test CI_EE_TEST=true CLERK_ENABLED=true NODE_OPTIONS=--max_old_space_size=8192 mocha --timeout 30000 --retries 3 --grep '#novu-v2' --require ./swc-register.js --exit --file e2e/setup.ts 'e2e/enterprise/**/billing.e2e.ts' ``` ## Important Notes - Always run commands from `apps/api` directory - For specific tests, use the full mocha command (not pnpm script) to target the exact test file - Report test results clearly to the user
GitHub에서 보기