@nestjs/testing 8.4.5 → 8.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/testing",
3
- "version": "8.4.5",
3
+ "version": "8.4.6",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@testing)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",
@@ -17,7 +17,6 @@
17
17
  "access": "public"
18
18
  },
19
19
  "dependencies": {
20
- "optional": "0.1.4",
21
20
  "tslib": "2.4.0"
22
21
  },
23
22
  "peerDependencies": {
package/testing-module.js CHANGED
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TestingModule = void 0;
4
4
  const common_1 = require("@nestjs/common");
5
5
  const load_package_util_1 = require("@nestjs/common/utils/load-package.util");
6
+ const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
6
7
  const core_1 = require("@nestjs/core");
7
8
  class TestingModule extends core_1.NestApplicationContext {
8
9
  constructor(container, scope, contextModule, applicationConfig) {
@@ -26,7 +27,7 @@ class TestingModule extends core_1.NestApplicationContext {
26
27
  return new ExpressAdapter(httpServer);
27
28
  }
28
29
  applyLogger(options) {
29
- if (!options || !options.logger) {
30
+ if (!options || (0, shared_utils_1.isUndefined)(options.logger)) {
30
31
  return;
31
32
  }
32
33
  common_1.Logger.overrideLogger(options.logger);