@przemyslawwalczak/nestjs-jest-toolbox
Advanced tools
Comparing version 1.1.0 to 1.1.1
## [1.1.1](https://github.com/przemyslawwalczak/nestjs-jest-toolbox/compare/1.1.0...1.1.1) (2024-01-07) | ||
### Bug Fixes | ||
* formatting ([060527b](https://github.com/przemyslawwalczak/nestjs-jest-toolbox/commit/060527b97153ff86c395f60ff69dcf78ae569778)) | ||
## 1.1.0 (2024-01-07) | ||
@@ -4,0 +11,0 @@ |
@@ -5,11 +5,11 @@ import { INestApplication, ModuleMetadata } from '@nestjs/common' | ||
export type TestToolkitSetup = { | ||
teardown?: 'all' | 'each' | ||
metadata: ModuleMetadata | ||
withBuilder?: (builder: TestingModuleBuilder) => void | Promise<void> | ||
withTestingModule?: (module: TestingModule) => void | Promise<void> | ||
withApplication?: (app: INestApplication) => void | Promise<void> | ||
teardown?: 'all' | 'each'; | ||
metadata: ModuleMetadata; | ||
withBuilder?: (builder: TestingModuleBuilder) => void | Promise<void>; | ||
withTestingModule?: (module: TestingModule) => void | Promise<void>; | ||
withApplication?: (app: INestApplication) => void | Promise<void>; | ||
} | ||
export interface TestToolkitFixture { | ||
builder: TestingModuleBuilder | ||
} | ||
builder: TestingModuleBuilder; | ||
} |
@@ -52,2 +52,3 @@ import request from 'supertest' | ||
app: { | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
get: <T = any>(token: NestModuleTokens<T>) => app.get<T>(token) | ||
@@ -54,0 +55,0 @@ }, |
@@ -0,0 +0,0 @@ import { Type } from '@nestjs/common' |
{ | ||
"name": "@przemyslawwalczak/nestjs-jest-toolbox", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"main": "dist/index.js", | ||
@@ -30,2 +30,4 @@ "types": "dist/index.d.ts", | ||
"@types/supertest": "6.0.2", | ||
"@typescript-eslint/eslint-plugin": "6.18.0", | ||
"@typescript-eslint/parser": "6.18.0", | ||
"eslint": "8.52.0", | ||
@@ -32,0 +34,0 @@ "eslint-config-codemask": "1.1.7", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2860446
11231
27