@nestjs/testing 8.1.0 → 8.2.1
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/CHANGELOG.md +12 -0
- package/index.js +4 -4
- package/interfaces/index.js +2 -2
- package/package.json +1 -1
- package/testing-module.builder.js +1 -1
- package/testing-module.js +2 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
<a name="8.2.0"></a>
|
|
7
|
+
# [8.2.0](https://github.com/nestjs/nest/compare/v8.1.2...v8.2.0) (2021-11-08)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @nestjs/testing
|
package/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
const tslib_1 = require("tslib");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
tslib_1.__exportStar(require("./interfaces"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./test"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./testing-module"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./testing-module.builder"), exports);
|
package/interfaces/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
tslib_1.__exportStar(require("./override-by-factory-options.interface"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./override-by.interface"), exports);
|
package/package.json
CHANGED
package/testing-module.js
CHANGED
|
@@ -17,12 +17,12 @@ class TestingModule extends core_1.NestApplicationContext {
|
|
|
17
17
|
return this.createAdapterProxy(instance, httpAdapter);
|
|
18
18
|
}
|
|
19
19
|
createNestMicroservice(options) {
|
|
20
|
-
const { NestMicroservice } =
|
|
20
|
+
const { NestMicroservice } = load_package_util_1.loadPackage('@nestjs/microservices', 'TestingModule', () => require('@nestjs/microservices'));
|
|
21
21
|
this.applyLogger(options);
|
|
22
22
|
return new NestMicroservice(this.container, options, this.applicationConfig);
|
|
23
23
|
}
|
|
24
24
|
createHttpAdapter(httpServer) {
|
|
25
|
-
const { ExpressAdapter } =
|
|
25
|
+
const { ExpressAdapter } = load_package_util_1.loadPackage('@nestjs/platform-express', 'NestFactory', () => require('@nestjs/platform-express'));
|
|
26
26
|
return new ExpressAdapter(httpServer);
|
|
27
27
|
}
|
|
28
28
|
applyLogger(options) {
|