Test Coverage, from zero to stability

Rolique
Rolique
Jul 5 · 4 min read

Starting point

Mocha and Chai as a business logic treatment

describe(‘Validate CompanyManagementService’, () => {
let user
let companyManagementServicebefore(async () => {user = await setUp()container.snapshot()container.rebind(types.UserService).toConstantValue(userServiceMock)companyManagementService = container.get(types.CompanyManagementService)})

E2E tests against the monotonous work

Credits

Pros and Cons of Cypress

Impressive Jest power

Geek Culture

Proud to geek out. Follow to join our +1.5M monthly readers.