run-api-e2e-tests

Execute API end-to-end tests for novu-v2 using pnpm and mocha.

39.5k|4.4k|Updated Aug 26, 2021
One-click install
npx skills add https://github.com/novuhq/novu --skill run-api-e2e-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-api-e2e-tests
Source: https://github.com/novuhq/novu/tree/main/.cursor/skills/run-api-e2e-tests
Command: npx skills add https://github.com/novuhq/novu --skill run-api-e2e-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Run e2e tests for the API service. These tests validate the end-to-end behavior of novu-v2 across the API layer, ensuring reliability in new changes.

Core Features & Use Cases

  • All tests: Run the full set of API e2e tests located under apps/api.
  • Test selection: Target a specific test file or feature by filename, enabling focused validation.
  • CI / Local: Integrate into CI pipelines or local development to verify API behavior across multiple test suites, including regular and enterprise tests.

Quick Start

Run all API e2e tests by executing the provided pnpm test:e2e:novu-v2 command from the API project.

Frequently Asked Questions about run-api-e2e-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run API e2e tests for novu-v2 services?

Run API e2e tests by executing the pnpm test:e2e:novu-v2 command from the API project directory, which uses mocha commands with global test patterns to validate end-to-end API behavior.

How do I run a specific mocha test file for the novu API?

You can target a specific test file or feature by filename, enabling focused validation of individual test suites within the apps/api directory without running the entire test suite.

Can I run novu API e2e tests in CI pipelines and local development?

Yes, you can integrate these API e2e tests into CI pipelines or local development environments to verify API behavior across multiple test suites, including both regular and enterprise tests.

What setup is required to run novu-v2 end-to-end tests with pnpm?

Running novu-v2 end-to-end tests requires the swc-register.js setup and references to e2e/setup.ts to properly configure the pnpm and mocha testing environment.

What is the difference between regular and enterprise API e2e tests?

Regular and enterprise API e2e tests represent different test suites executed during validation; both are supported when running the full set of API e2e tests located under apps/api.