Thomas Ricart
Thomas Ricart
Hey @silvelo ! Can you give us the code sample ?
Hey guys ! Did you try this ? https://www.npmjs.com/package/babel-plugin-transform-function-parameter-decorators I'll try this soon if no one do ;-)
Hey @kamilmysliwiec, The thing is I don't know why you have to call the listen() function ? I wrote this test file that work fine: ```typescript import {NestFactory} from '@nestjs/core';...
Hey @Mark-McCracken, In my case I use Jest and I wrote this piece of example: ```typescript describe('RegistrationService', () => { let service: RegistrationService; beforeEach(() => { Test.createTestingModule({ components: [ RegistrationService...
Hey @Mark-McCracken, You can also use the next test suite: ```json "devDependencies": { "@types/chai": "^3.5.2", "@types/mocha": "^2.2.41", "@types/node": "^7.0.18", "@types/sinon": "^2.2.2", "@types/supertest": "^2.0.0", "chai": "^3.5.0", "mocha": "^3.4.1", "node-mocks-http": "^1.6.2", "sinon":...
Hey @kamilmysliwiec, I'm on it ;-)
Ok I can write tests on the current examples to start. Do you want to use different test frameworks or just the current ones (mocha chai sinon) ?
Hey @kamilmysliwiec, Maybe the master branch is not up to date because typescript compile fail when running unit tests... Or maybe the up to date branch is not master and...
@kamilmysliwiec I've started a repo on my own github account with mocha testing framework here : https://github.com/ThomRick/nest-test-mocha-example We will integrate it later if you want. ;-)
Hey @artaommahe, Try to use something like this to init your test module : ```typescript import {INestApplication} from '@nestjs/common/interfaces/nest-application.interface'; import {NestFactory} from '@nestjs/core'; import {UserModule} from './user.module'; import * as...