始めに apiのnodeのバージョンを8から14にしました(まだリリースはしてない)!! 14への移行自体は簡単だったもののテストの移行でかなり苦戦しました。。。 テストは古のライブラリmocha-coで書かれており、仕方なくmocha-coのシンタックスをjestに置き換える作業を開始しました。これが予想以上にめんどくさくその時のHow toを解決する方法がこの記事になります。 以下の問題にお悩みの方はこちらを参考していただけるかと思います。またいい方法をご存知の方はお教えください!! TooManyConnectionとなってしまう 毎回のテストでサーバー立ち上げとクローズをするのめんどくさい --ranInBandつけたけどなんか挙動がよくわからない・・・。 mochaからのjestに移行したい 正確にjestのランタイムの仕様が分かっているわけではなく、調べたり試したりした結果なの
import { INestApplication, ValidationPipe } from '@nestjs/common' import { ConfigModule } from '@nestjs/config' import { APP_GUARD } from '@nestjs/core' import { Test, TestingModule } from '@nestjs/testing' import { TypeOrmModule } from '@nestjs/typeorm' import * as request from 'supertest' describe('サンプルテスト(E2E)', () => { // モジュール設定開始 let app: INestApplication // テスト実行時に毎回実行します beforeEach(async (
ChatServer - Server side of Chat App implemented using NestJS. Domain Driven Design - Library - Example of an application that follows Domain Driven Design. Realworld Example App - Exemplary real world backend API built with NestJS + TypeORM. Mant - New Stack on the Market to beat them all 💍 MANT. REST NestJS Postgres - CrudJS implemented as a REST API, using NestJS and Postgres. Nest Permissions
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く