Skip to content
Back to skills

Add E2e Test

ASecurity

Create an End-to-End (E2E) test for a REST controller or GraphQL resolver using Fastify injection.

  • 30 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 8, 2026
developmenttypescripttestingapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned June 8, 2026

npx -y skills add uxname/liteend --skill add-e2e-test --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add E2e Test?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Add E2e Test
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/uxname-add-e2e-test/badge)](https://www.skillsdirectory.com/skills/uxname-add-e2e-test)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: add-e2e-test
description: Create an End-to-End (E2E) test for a REST controller or GraphQL resolver using Fastify injection.
---

## Rules
1. Never import `supertest`.
2. Use `E2EClient` and `createTestingApp` from `test/utils/testing-app.ts`.
3. Do not import `describe`, `it`, `expect`, `beforeAll`, etc. from 'vitest', as they are globally available.

## Template for REST:
```typescript
import { E2EClient } from '../../test/utils/e2e-client';
import { createTestingApp } from '../../test/utils/testing-app';

describe('FeatureName (e2e)', () => {
  let client: E2EClient;

  beforeAll(async () => {
    const { fastify } = await createTestingApp();
    client = new E2EClient(fastify);
  });

  it('should process request and return 200', async () => {
    // Arrange
    // Act
    const response = await client.request({ method: 'GET', url: '/api/path' });
    // Assert
    expect(response.statusCode).toBe(200);
  });
});
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.