How to use the @tsed/testing.invoke function in @tsed/testing

To help you get started, we’ve selected a few @tsed/testing examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TypedProject / ts-express-decorators / test / units / serve-static / services / ServeStaticService.spec.ts View on Github external
before(() => {
    this.serveStaticService = invoke(ServeStaticService, [
      {
        provide: ExpressApplication,
        use: expressApplication
      },
      {
        provide: ServerSettingsService,
        use: serverSettingService
      }
    ]);
  });

@tsed/testing

A TypeScript Framework on top of Express

MIT
Latest version published 4 years ago

Package Health Score

62 / 100
Full package analysis

Similar packages