jhipster / generator-jhipster-nodejs

A NodeJS blueprint that creates the backend using NestJS
https://www.npmjs.com/package/generator-jhipster-nodejs
Apache License 2.0
258 stars 79 forks source link

Add e2e tests for generated server project #91

Closed ghost closed 4 years ago

ghost commented 4 years ago

It is useful to have end-to-end test classes for every controller. Now there is a npm script test:e2e for an app test that fails. According nestjs standard, rename e2e test with .e2e-spec suffix and jest file with .e2e.config.

ghost commented 4 years ago

We need to fix the app main e2e test and provide a e2e test for every controller generated by entity and/or controller generator, in order to check CRUD operations.

ghost commented 4 years ago

With https://github.com/jhipster/generator-jhipster-nodejs/commit/d9579e7152d609d783733d7185de5bc843c2131b I have added test profile for typeORM (sqlite in memory), renamed app e2e test and fix it. it misses to do a mocking way for security and service.

ghost commented 4 years ago

Added with #102