@zeltjs/testing
v0.1.1
Published
Testing utilities for Zelt applications.
Downloads
223
Readme
@zeltjs/testing
Testing utilities for Zelt applications.
Installation
npm install -D @zeltjs/testingUsage
import { createTestApp } from '@zeltjs/testing';
import { describe, it, expect } from 'vitest';
describe('HelloController', () => {
it('returns hello message', async () => {
const app = createTestApp({ controllers: [HelloController] });
const res = await app.request('/hello');
expect(res.status).toBe(200);
});
});Documentation
See zeltjs.dev for full documentation.
