You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the application grows, it is hard to manually test a behavior of each API endpoint. The end-to-end tests help us to make sure that everything is working correctly and fits project requirements.
TODO:
Add new module @kites/testing to support end to end testing
Help to init or close application properly
Support override kites providers and extensions usage
Example:
import{KitesInstance}from'@kites/core';import{Test}from'@kites/testing';import*asrequestfrom'supertest';import{TodoController}from'./todo.controller';import{TodoService}from'./todo.service';describe('Todo e2e',()=>{letapp: KitesInstance;lettodoService={findAll: ()=>['list all tasks']};beforeAll(async()=>{app=awaitTest.createApp({providers: [TodoService],}).init();});it(`/GET list`,()=>{returnrequest(app.express.app).get('/api/todo').expect(200).expect({data: todoService.findAll(),});});afterAll(async()=>{awaitapp.close();});});
The text was updated successfully, but these errors were encountered:
When the application grows, it is hard to manually test a behavior of each API endpoint. The end-to-end tests help us to make sure that everything is working correctly and fits project requirements.
TODO:
@kites/testing
to support end to end testingExample:
The text was updated successfully, but these errors were encountered: