@nestjs/testing 8.3.0 → 8.3.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/Readme.md +1 -0
- package/index.js +4 -4
- package/interfaces/index.js +3 -3
- package/package.json +1 -1
- package/testing-module.builder.js +1 -1
- package/testing-module.js +2 -2
package/Readme.md
CHANGED
|
@@ -123,6 +123,7 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
|
|
|
123
123
|
<td align="center" valign="middle"><a href="https://thecasinowizard.com/bonuses/no-deposit-bonuses/" target="_blank"><img src="https://nestjs.com/img/casinowizard-logo.png" width="120" valign="middle" /></a></td></tr><tr>
|
|
124
124
|
<td align="center" valign="middle"><a href="https://polygon-software.ch/" target="_blank"><img src="https://nestjs.com/img/polygon-logo.svg" width="120" valign="middle" /></a></td>
|
|
125
125
|
<td align="center" valign="middle"><a href="https://mobilereality.pl/" target="_blank"><img src="https://nestjs.com/img/mobile-reality-logo.png" width="45" valign="middle" /></a></td>
|
|
126
|
+
<td align="center" valign="middle"><a href="https://boringowl.io/" target="_blank"><img src="https://nestjs.com/img/boringowl-logo.svg" width="120" valign="middle" /></a></td>
|
|
126
127
|
</tr></table>
|
|
127
128
|
|
|
128
129
|
## Backers
|
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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
tslib_1.__exportStar(require("./mock-factory"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./override-by-factory-options.interface"), exports);
|
|
6
|
+
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) {
|