@tsed/platform-test-sdk 7.70.1 → 7.71.0
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/.barrelsby.json +5 -0
- package/lib/cjs/components/PlatformTestSdk.js +2 -2
- package/lib/cjs/components/PlatformTestSdk.js.map +1 -1
- package/lib/cjs/index.js +40 -39
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/interfaces/index.js +4 -4
- package/lib/cjs/interfaces/index.js.map +1 -1
- package/lib/cjs/modules/feature/FeatureModule.js +2 -2
- package/lib/cjs/modules/feature/FeatureModule.js.map +1 -1
- package/lib/cjs/tests/exports.js +58 -58
- package/lib/cjs/tests/exports.js.map +1 -1
- package/lib/cjs/tests/testErrors.js +6 -6
- package/lib/cjs/tests/testErrors.js.map +1 -1
- package/lib/cjs/tests/testModule.js +2 -2
- package/lib/cjs/tests/testModule.js.map +1 -1
- package/lib/cjs/tests/testMulter.js +1 -3
- package/lib/cjs/tests/testMulter.js.map +1 -1
- package/lib/cjs/tests/testResponse.js +0 -1
- package/lib/cjs/tests/testResponse.js.map +1 -1
- package/lib/cjs/tests/testStream.js +1 -3
- package/lib/cjs/tests/testStream.js.map +1 -1
- package/lib/esm/components/PlatformTestSdk.js.map +1 -1
- package/lib/esm/index.js +3 -2
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/interfaces/index.js +1 -1
- package/lib/esm/interfaces/index.js.map +1 -1
- package/lib/esm/modules/feature/FeatureModule.js.map +1 -1
- package/lib/esm/tests/exports.js.map +1 -1
- package/lib/esm/tests/testErrors.js.map +1 -1
- package/lib/esm/tests/testModule.js.map +1 -1
- package/lib/esm/tests/testMulter.js +2 -4
- package/lib/esm/tests/testMulter.js.map +1 -1
- package/lib/esm/tests/testResponse.js +0 -1
- package/lib/esm/tests/testResponse.js.map +1 -1
- package/lib/esm/tests/testStream.js +1 -3
- package/lib/esm/tests/testStream.js.map +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/components/PlatformTestSdk.d.ts +1 -1
- package/lib/types/index.d.ts +38 -37
- package/lib/types/interfaces/index.d.ts +2 -2
- package/lib/types/tests/exports.d.ts +1 -1
- package/lib/types/tests/testAcceptMime.d.ts +1 -1
- package/lib/types/tests/testAuth.d.ts +1 -1
- package/lib/types/tests/testBodyParams.d.ts +1 -1
- package/lib/types/tests/testCache.d.ts +1 -1
- package/lib/types/tests/testChildrenControllers.d.ts +1 -1
- package/lib/types/tests/testCookies.d.ts +1 -1
- package/lib/types/tests/testCustom404.d.ts +1 -1
- package/lib/types/tests/testDeepQueryParams.d.ts +1 -1
- package/lib/types/tests/testErrors.d.ts +1 -1
- package/lib/types/tests/testHandlers.d.ts +1 -1
- package/lib/types/tests/testHeaderParams.d.ts +1 -1
- package/lib/types/tests/testHeaders.d.ts +1 -1
- package/lib/types/tests/testInheritanceController.d.ts +1 -1
- package/lib/types/tests/testLocals.d.ts +1 -1
- package/lib/types/tests/testLocation.d.ts +1 -1
- package/lib/types/tests/testMiddlewares.d.ts +1 -1
- package/lib/types/tests/testModule.d.ts +1 -1
- package/lib/types/tests/testMulter.d.ts +1 -1
- package/lib/types/tests/testPathParams.d.ts +1 -1
- package/lib/types/tests/testQueryParams.d.ts +1 -1
- package/lib/types/tests/testRedirect.d.ts +1 -1
- package/lib/types/tests/testResponse.d.ts +1 -1
- package/lib/types/tests/testResponseFilter.d.ts +1 -1
- package/lib/types/tests/testRouting.d.ts +1 -1
- package/lib/types/tests/testScopeRequest.d.ts +1 -1
- package/lib/types/tests/testSession.d.ts +1 -1
- package/lib/types/tests/testStatics.d.ts +1 -1
- package/lib/types/tests/testStream.d.ts +1 -1
- package/lib/types/tests/testView.d.ts +1 -1
- package/package.json +17 -16
- package/src/components/PlatformTestSdk.ts +2 -2
- package/src/index.ts +38 -38
- package/src/interfaces/index.ts +2 -3
- package/src/modules/feature/FeatureModule.ts +1 -1
- package/src/tests/exports.ts +30 -30
- package/src/tests/testAcceptMime.ts +1 -1
- package/src/tests/testAuth.ts +1 -1
- package/src/tests/testBodyParams.ts +1 -1
- package/src/tests/testCache.ts +1 -1
- package/src/tests/testChildrenControllers.ts +1 -1
- package/src/tests/testCookies.ts +1 -1
- package/src/tests/testCustom404.ts +1 -1
- package/src/tests/testDeepQueryParams.ts +1 -1
- package/src/tests/testErrors.ts +3 -3
- package/src/tests/testHandlers.ts +1 -1
- package/src/tests/testHeaderParams.ts +1 -1
- package/src/tests/testHeaders.ts +1 -1
- package/src/tests/testInheritanceController.ts +1 -1
- package/src/tests/testLocals.ts +1 -1
- package/src/tests/testLocation.ts +1 -1
- package/src/tests/testMiddlewares.ts +1 -1
- package/src/tests/testModule.ts +2 -2
- package/src/tests/testMulter.ts +2 -4
- package/src/tests/testPathParams.ts +1 -1
- package/src/tests/testQueryParams.ts +1 -1
- package/src/tests/testRedirect.ts +1 -1
- package/src/tests/testResponse.ts +1 -3
- package/src/tests/testResponseFilter.ts +1 -1
- package/src/tests/testRouting.ts +1 -1
- package/src/tests/testScopeRequest.ts +1 -1
- package/src/tests/testSession.ts +1 -1
- package/src/tests/testStatics.ts +1 -1
- package/src/tests/testStream.ts +3 -4
- package/src/tests/testView.ts +1 -1
package/lib/types/index.d.ts
CHANGED
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @file Automatically generated by
|
|
2
|
+
* @file Automatically generated by @tsed/barrels.
|
|
3
3
|
*/
|
|
4
|
-
export * from "./components/PlatformTestSdk";
|
|
5
|
-
export * from "./errors/CustomBadRequest";
|
|
6
|
-
export * from "./errors/CustomInternalError";
|
|
7
|
-
export * from "./interfaces/
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./modules/feature/controllers/FeatureController";
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./tests/
|
|
12
|
-
export * from "./tests/
|
|
13
|
-
export * from "./tests/
|
|
14
|
-
export * from "./tests/
|
|
15
|
-
export * from "./tests/
|
|
16
|
-
export * from "./tests/
|
|
17
|
-
export * from "./tests/
|
|
18
|
-
export * from "./tests/
|
|
19
|
-
export * from "./tests/
|
|
20
|
-
export * from "./tests/
|
|
21
|
-
export * from "./tests/
|
|
22
|
-
export * from "./tests/
|
|
23
|
-
export * from "./tests/
|
|
24
|
-
export * from "./tests/
|
|
25
|
-
export * from "./tests/
|
|
26
|
-
export * from "./tests/
|
|
27
|
-
export * from "./tests/
|
|
28
|
-
export * from "./tests/
|
|
29
|
-
export * from "./tests/
|
|
30
|
-
export * from "./tests/
|
|
31
|
-
export * from "./tests/
|
|
32
|
-
export * from "./tests/
|
|
33
|
-
export * from "./tests/
|
|
34
|
-
export * from "./tests/
|
|
35
|
-
export * from "./tests/
|
|
36
|
-
export * from "./tests/
|
|
37
|
-
export * from "./tests/
|
|
38
|
-
export * from "./tests/
|
|
39
|
-
export * from "./tests/
|
|
4
|
+
export * from "./components/PlatformTestSdk.js";
|
|
5
|
+
export * from "./errors/CustomBadRequest.js";
|
|
6
|
+
export * from "./errors/CustomInternalError.js";
|
|
7
|
+
export * from "./interfaces/index.js";
|
|
8
|
+
export * from "./interfaces/PlatformTestingSdkOpts.js";
|
|
9
|
+
export * from "./modules/feature/controllers/FeatureController.js";
|
|
10
|
+
export * from "./modules/feature/FeatureModule.js";
|
|
11
|
+
export * from "./tests/exports.js";
|
|
12
|
+
export * from "./tests/testAcceptMime.js";
|
|
13
|
+
export * from "./tests/testAuth.js";
|
|
14
|
+
export * from "./tests/testBodyParams.js";
|
|
15
|
+
export * from "./tests/testCache.js";
|
|
16
|
+
export * from "./tests/testChildrenControllers.js";
|
|
17
|
+
export * from "./tests/testCookies.js";
|
|
18
|
+
export * from "./tests/testCustom404.js";
|
|
19
|
+
export * from "./tests/testDeepQueryParams.js";
|
|
20
|
+
export * from "./tests/testErrors.js";
|
|
21
|
+
export * from "./tests/testHandlers.js";
|
|
22
|
+
export * from "./tests/testHeaderParams.js";
|
|
23
|
+
export * from "./tests/testHeaders.js";
|
|
24
|
+
export * from "./tests/testInheritanceController.js";
|
|
25
|
+
export * from "./tests/testLocals.js";
|
|
26
|
+
export * from "./tests/testLocation.js";
|
|
27
|
+
export * from "./tests/testMiddlewares.js";
|
|
28
|
+
export * from "./tests/testModule.js";
|
|
29
|
+
export * from "./tests/testMulter.js";
|
|
30
|
+
export * from "./tests/testPathParams.js";
|
|
31
|
+
export * from "./tests/testQueryParams.js";
|
|
32
|
+
export * from "./tests/testRedirect.js";
|
|
33
|
+
export * from "./tests/testResponse.js";
|
|
34
|
+
export * from "./tests/testResponseFilter.js";
|
|
35
|
+
export * from "./tests/testRouting.js";
|
|
36
|
+
export * from "./tests/testScopeRequest.js";
|
|
37
|
+
export * from "./tests/testSession.js";
|
|
38
|
+
export * from "./tests/testStatics.js";
|
|
39
|
+
export * from "./tests/testStream.js";
|
|
40
|
+
export * from "./tests/testView.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PlatformTestingSdkOpts } from "../interfaces";
|
|
1
|
+
import { PlatformTestingSdkOpts } from "../interfaces/index.js";
|
|
2
2
|
export declare const specsContainer: Map<string, (options: PlatformTestingSdkOpts) => void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PlatformTestingSdkOpts } from "../interfaces";
|
|
1
|
+
import { PlatformTestingSdkOpts } from "../interfaces/index.js";
|
|
2
2
|
export declare function testAcceptMime(options: PlatformTestingSdkOpts): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PlatformTestingSdkOpts } from "../interfaces";
|
|
1
|
+
import { PlatformTestingSdkOpts } from "../interfaces/index.js";
|
|
2
2
|
export declare function testCache(options: PlatformTestingSdkOpts): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PlatformTestingSdkOpts } from "../interfaces";
|
|
1
|
+
import { PlatformTestingSdkOpts } from "../interfaces/index.js";
|
|
2
2
|
export declare function testChildrenControllers(options: PlatformTestingSdkOpts): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PlatformTestingSdkOpts } from "../interfaces";
|
|
1
|
+
import { PlatformTestingSdkOpts } from "../interfaces/index.js";
|
|
2
2
|
export declare function testCustom404(options: PlatformTestingSdkOpts): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PlatformResponse } from "@tsed/common";
|
|
2
|
-
import { PlatformTestingSdkOpts } from "../interfaces";
|
|
2
|
+
import { PlatformTestingSdkOpts } from "../interfaces/index.js";
|
|
3
3
|
export declare class HeadersCtrl {
|
|
4
4
|
testScenario1(value: string[]): any;
|
|
5
5
|
testScenario2(): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PlatformTestingSdkOpts } from "../interfaces";
|
|
1
|
+
import { PlatformTestingSdkOpts } from "../interfaces/index.js";
|
|
2
2
|
export declare function testLocals(options: PlatformTestingSdkOpts): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PlatformTestingSdkOpts } from "../interfaces";
|
|
1
|
+
import { PlatformTestingSdkOpts } from "../interfaces/index.js";
|
|
2
2
|
export declare function testLocation(options: PlatformTestingSdkOpts): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@tsed/ajv";
|
|
2
2
|
import { MiddlewareMethods } from "@tsed/common";
|
|
3
3
|
import { Exception } from "@tsed/exceptions";
|
|
4
|
-
import { PlatformTestingSdkOpts } from "../interfaces";
|
|
4
|
+
import { PlatformTestingSdkOpts } from "../interfaces/index.js";
|
|
5
5
|
export declare class CatchErrorMiddleware implements MiddlewareMethods {
|
|
6
6
|
use(err: Exception): void;
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PlatformTestingSdkOpts } from "../interfaces";
|
|
1
|
+
import { PlatformTestingSdkOpts } from "../interfaces/index.js";
|
|
2
2
|
export declare function testModule(options: PlatformTestingSdkOpts): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PlatformTestingSdkOpts } from "../interfaces";
|
|
1
|
+
import { PlatformTestingSdkOpts } from "../interfaces/index.js";
|
|
2
2
|
export declare function testPathParams(options: PlatformTestingSdkOpts): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PlatformTestingSdkOpts } from "../interfaces";
|
|
1
|
+
import { PlatformTestingSdkOpts } from "../interfaces/index.js";
|
|
2
2
|
export declare function testRedirect(options: PlatformTestingSdkOpts): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PlatformTestingSdkOpts } from "../interfaces";
|
|
1
|
+
import { PlatformTestingSdkOpts } from "../interfaces/index.js";
|
|
2
2
|
export declare function testResponseFilter(options: PlatformTestingSdkOpts): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PlatformTestingSdkOpts } from "../interfaces";
|
|
1
|
+
import { PlatformTestingSdkOpts } from "../interfaces/index.js";
|
|
2
2
|
export declare function testStatics(options: PlatformTestingSdkOpts): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PlatformTestingSdkOpts } from "../interfaces";
|
|
1
|
+
import { PlatformTestingSdkOpts } from "../interfaces/index.js";
|
|
2
2
|
export declare function testStream(options: PlatformTestingSdkOpts): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PlatformTestingSdkOpts } from "../interfaces";
|
|
1
|
+
import { PlatformTestingSdkOpts } from "../interfaces/index.js";
|
|
2
2
|
export declare function testView(options: PlatformTestingSdkOpts): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/platform-test-sdk",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.71.0",
|
|
4
4
|
"description": "Package to test platform adapter integration with Ts.ED",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "yarn barrels && yarn build:ts",
|
|
17
|
-
"barrels": "
|
|
17
|
+
"barrels": "barrels",
|
|
18
18
|
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json"
|
|
19
19
|
},
|
|
20
20
|
"keywords": [
|
|
@@ -25,27 +25,28 @@
|
|
|
25
25
|
"Adapter"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@tsed/ajv": "7.
|
|
29
|
-
"@tsed/common": "7.
|
|
30
|
-
"@tsed/core": "7.
|
|
31
|
-
"@tsed/di": "7.
|
|
32
|
-
"@tsed/json-mapper": "7.
|
|
28
|
+
"@tsed/ajv": "7.71.0",
|
|
29
|
+
"@tsed/common": "7.71.0",
|
|
30
|
+
"@tsed/core": "7.71.0",
|
|
31
|
+
"@tsed/di": "7.71.0",
|
|
32
|
+
"@tsed/json-mapper": "7.71.0",
|
|
33
33
|
"@tsed/logger": "6.6.3",
|
|
34
|
-
"@tsed/platform-cache": "7.
|
|
35
|
-
"@tsed/platform-params": "7.
|
|
36
|
-
"@tsed/platform-router": "7.
|
|
37
|
-
"@tsed/platform-views": "7.
|
|
38
|
-
"@tsed/schema": "7.
|
|
39
|
-
"@tsed/swagger": "7.
|
|
34
|
+
"@tsed/platform-cache": "7.71.0",
|
|
35
|
+
"@tsed/platform-params": "7.71.0",
|
|
36
|
+
"@tsed/platform-router": "7.71.0",
|
|
37
|
+
"@tsed/platform-views": "7.71.0",
|
|
38
|
+
"@tsed/schema": "7.71.0",
|
|
39
|
+
"@tsed/swagger": "7.71.0",
|
|
40
40
|
"ajv": "^8.12.0",
|
|
41
41
|
"axios": "1.6.8",
|
|
42
42
|
"read-pkg-up": "7.0.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@tsed/
|
|
46
|
-
"
|
|
45
|
+
"@tsed/barrels": "7.71.0",
|
|
46
|
+
"@tsed/typescript": "7.71.0",
|
|
47
47
|
"eslint": "^8.57.0",
|
|
48
|
-
"jest": "^29.7.0"
|
|
48
|
+
"jest": "^29.7.0",
|
|
49
|
+
"typescript": "4.9.5"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {},
|
|
51
52
|
"repository": "https://github.com/tsedio/tsed",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {PlatformTest} from "@tsed/common";
|
|
2
|
-
import {PlatformTestingSdkOpts} from "../interfaces/index";
|
|
3
|
-
import {specsContainer} from "../tests/exports";
|
|
2
|
+
import {PlatformTestingSdkOpts} from "../interfaces/index.js";
|
|
3
|
+
import {specsContainer} from "../tests/exports.js";
|
|
4
4
|
|
|
5
5
|
export class PlatformTestSdk {
|
|
6
6
|
protected constructor(private options: PlatformTestingSdkOpts) {}
|
package/src/index.ts
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @file Automatically generated by
|
|
2
|
+
* @file Automatically generated by @tsed/barrels.
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./errors/
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./interfaces/PlatformTestingSdkOpts";
|
|
9
|
-
export * from "./modules/feature/
|
|
10
|
-
export * from "./modules/feature/
|
|
11
|
-
export * from "./tests/exports";
|
|
12
|
-
export * from "./tests/testAcceptMime";
|
|
13
|
-
export * from "./tests/testAuth";
|
|
14
|
-
export * from "./tests/testBodyParams";
|
|
15
|
-
export * from "./tests/testCache";
|
|
16
|
-
export * from "./tests/testChildrenControllers";
|
|
17
|
-
export * from "./tests/testCookies";
|
|
18
|
-
export * from "./tests/testCustom404";
|
|
19
|
-
export * from "./tests/testDeepQueryParams";
|
|
20
|
-
export * from "./tests/testErrors";
|
|
21
|
-
export * from "./tests/testHandlers";
|
|
22
|
-
export * from "./tests/testHeaderParams";
|
|
23
|
-
export * from "./tests/testHeaders";
|
|
24
|
-
export * from "./tests/testInheritanceController";
|
|
25
|
-
export * from "./tests/testLocals";
|
|
26
|
-
export * from "./tests/testLocation";
|
|
27
|
-
export * from "./tests/testMiddlewares";
|
|
28
|
-
export * from "./tests/testModule";
|
|
29
|
-
export * from "./tests/testMulter";
|
|
30
|
-
export * from "./tests/testPathParams";
|
|
31
|
-
export * from "./tests/testQueryParams";
|
|
32
|
-
export * from "./tests/testRedirect";
|
|
33
|
-
export * from "./tests/testResponse";
|
|
34
|
-
export * from "./tests/testResponseFilter";
|
|
35
|
-
export * from "./tests/testRouting";
|
|
36
|
-
export * from "./tests/testScopeRequest";
|
|
37
|
-
export * from "./tests/testSession";
|
|
38
|
-
export * from "./tests/testStatics";
|
|
39
|
-
export * from "./tests/testStream";
|
|
40
|
-
export * from "./tests/testView";
|
|
4
|
+
export * from "./components/PlatformTestSdk.js";
|
|
5
|
+
export * from "./errors/CustomBadRequest.js";
|
|
6
|
+
export * from "./errors/CustomInternalError.js";
|
|
7
|
+
export * from "./interfaces/index.js";
|
|
8
|
+
export * from "./interfaces/PlatformTestingSdkOpts.js";
|
|
9
|
+
export * from "./modules/feature/controllers/FeatureController.js";
|
|
10
|
+
export * from "./modules/feature/FeatureModule.js";
|
|
11
|
+
export * from "./tests/exports.js";
|
|
12
|
+
export * from "./tests/testAcceptMime.js";
|
|
13
|
+
export * from "./tests/testAuth.js";
|
|
14
|
+
export * from "./tests/testBodyParams.js";
|
|
15
|
+
export * from "./tests/testCache.js";
|
|
16
|
+
export * from "./tests/testChildrenControllers.js";
|
|
17
|
+
export * from "./tests/testCookies.js";
|
|
18
|
+
export * from "./tests/testCustom404.js";
|
|
19
|
+
export * from "./tests/testDeepQueryParams.js";
|
|
20
|
+
export * from "./tests/testErrors.js";
|
|
21
|
+
export * from "./tests/testHandlers.js";
|
|
22
|
+
export * from "./tests/testHeaderParams.js";
|
|
23
|
+
export * from "./tests/testHeaders.js";
|
|
24
|
+
export * from "./tests/testInheritanceController.js";
|
|
25
|
+
export * from "./tests/testLocals.js";
|
|
26
|
+
export * from "./tests/testLocation.js";
|
|
27
|
+
export * from "./tests/testMiddlewares.js";
|
|
28
|
+
export * from "./tests/testModule.js";
|
|
29
|
+
export * from "./tests/testMulter.js";
|
|
30
|
+
export * from "./tests/testPathParams.js";
|
|
31
|
+
export * from "./tests/testQueryParams.js";
|
|
32
|
+
export * from "./tests/testRedirect.js";
|
|
33
|
+
export * from "./tests/testResponse.js";
|
|
34
|
+
export * from "./tests/testResponseFilter.js";
|
|
35
|
+
export * from "./tests/testRouting.js";
|
|
36
|
+
export * from "./tests/testScopeRequest.js";
|
|
37
|
+
export * from "./tests/testSession.js";
|
|
38
|
+
export * from "./tests/testStatics.js";
|
|
39
|
+
export * from "./tests/testStream.js";
|
|
40
|
+
export * from "./tests/testView.js";
|
package/src/interfaces/index.ts
CHANGED
package/src/tests/exports.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import {PlatformTestingSdkOpts} from "../interfaces";
|
|
2
|
-
import {testAcceptMime} from "./testAcceptMime";
|
|
3
|
-
import {testAuth} from "./testAuth";
|
|
4
|
-
import {testBodyParams} from "./testBodyParams";
|
|
5
|
-
import {testChildrenControllers} from "./testChildrenControllers";
|
|
6
|
-
import {testCookies} from "./testCookies";
|
|
7
|
-
import {testCustom404} from "./testCustom404";
|
|
8
|
-
import {testDeepQueryParams} from "./testDeepQueryParams";
|
|
9
|
-
import {testErrors} from "./testErrors";
|
|
10
|
-
import {testHandlers} from "./testHandlers";
|
|
11
|
-
import {testHeaderParams} from "./testHeaderParams";
|
|
12
|
-
import {testHeaders} from "./testHeaders";
|
|
13
|
-
import {testInheritanceController} from "./testInheritanceController";
|
|
14
|
-
import {testLocals} from "./testLocals";
|
|
15
|
-
import {testLocation} from "./testLocation";
|
|
16
|
-
import {testMiddlewares} from "./testMiddlewares";
|
|
17
|
-
import {testModule} from "./testModule";
|
|
18
|
-
import {testMulter} from "./testMulter";
|
|
19
|
-
import {testPathParams} from "./testPathParams";
|
|
20
|
-
import {testQueryParams} from "./testQueryParams";
|
|
21
|
-
import {testRedirect} from "./testRedirect";
|
|
22
|
-
import {testResponse} from "./testResponse";
|
|
23
|
-
import {testResponseFilter} from "./testResponseFilter";
|
|
24
|
-
import {testRouting} from "./testRouting";
|
|
25
|
-
import {testScopeRequest} from "./testScopeRequest";
|
|
26
|
-
import {testSession} from "./testSession";
|
|
27
|
-
import {testStatics} from "./testStatics";
|
|
28
|
-
import {testStream} from "./testStream";
|
|
29
|
-
import {testView} from "./testView";
|
|
30
|
-
import {testCache} from "./testCache";
|
|
1
|
+
import {PlatformTestingSdkOpts} from "../interfaces/index.js";
|
|
2
|
+
import {testAcceptMime} from "./testAcceptMime.js";
|
|
3
|
+
import {testAuth} from "./testAuth.js";
|
|
4
|
+
import {testBodyParams} from "./testBodyParams.js";
|
|
5
|
+
import {testChildrenControllers} from "./testChildrenControllers.js";
|
|
6
|
+
import {testCookies} from "./testCookies.js";
|
|
7
|
+
import {testCustom404} from "./testCustom404.js";
|
|
8
|
+
import {testDeepQueryParams} from "./testDeepQueryParams.js";
|
|
9
|
+
import {testErrors} from "./testErrors.js";
|
|
10
|
+
import {testHandlers} from "./testHandlers.js";
|
|
11
|
+
import {testHeaderParams} from "./testHeaderParams.js";
|
|
12
|
+
import {testHeaders} from "./testHeaders.js";
|
|
13
|
+
import {testInheritanceController} from "./testInheritanceController.js";
|
|
14
|
+
import {testLocals} from "./testLocals.js";
|
|
15
|
+
import {testLocation} from "./testLocation.js";
|
|
16
|
+
import {testMiddlewares} from "./testMiddlewares.js";
|
|
17
|
+
import {testModule} from "./testModule.js";
|
|
18
|
+
import {testMulter} from "./testMulter.js";
|
|
19
|
+
import {testPathParams} from "./testPathParams.js";
|
|
20
|
+
import {testQueryParams} from "./testQueryParams.js";
|
|
21
|
+
import {testRedirect} from "./testRedirect.js";
|
|
22
|
+
import {testResponse} from "./testResponse.js";
|
|
23
|
+
import {testResponseFilter} from "./testResponseFilter.js";
|
|
24
|
+
import {testRouting} from "./testRouting.js";
|
|
25
|
+
import {testScopeRequest} from "./testScopeRequest.js";
|
|
26
|
+
import {testSession} from "./testSession.js";
|
|
27
|
+
import {testStatics} from "./testStatics.js";
|
|
28
|
+
import {testStream} from "./testStream.js";
|
|
29
|
+
import {testView} from "./testView.js";
|
|
30
|
+
import {testCache} from "./testCache.js";
|
|
31
31
|
|
|
32
32
|
export const specsContainer = new Map<string, (options: PlatformTestingSdkOpts) => void>();
|
|
33
33
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {AcceptMime, Controller, Get, HeaderParams, PlatformTest, Post} from "@tsed/common";
|
|
2
2
|
import {ContentType} from "@tsed/schema";
|
|
3
3
|
import SuperTest from "supertest";
|
|
4
|
-
import {PlatformTestingSdkOpts} from "../interfaces";
|
|
4
|
+
import {PlatformTestingSdkOpts} from "../interfaces/index.js";
|
|
5
5
|
|
|
6
6
|
@Controller("/accept-mime")
|
|
7
7
|
class TestAcceptMimeCtrl {
|
package/src/tests/testAuth.ts
CHANGED
|
@@ -4,7 +4,7 @@ import {BadRequest, Forbidden, Unauthorized} from "@tsed/exceptions";
|
|
|
4
4
|
import {In, Returns, Security} from "@tsed/schema";
|
|
5
5
|
import SuperTest from "supertest";
|
|
6
6
|
import baseSpec from "../data/swagger.json";
|
|
7
|
-
import {PlatformTestingSdkOpts} from "../interfaces";
|
|
7
|
+
import {PlatformTestingSdkOpts} from "../interfaces/index.js";
|
|
8
8
|
|
|
9
9
|
@Injectable()
|
|
10
10
|
export class TokenService {
|
package/src/tests/testCache.ts
CHANGED
|
@@ -2,7 +2,7 @@ import {Controller, Get, Head, Inject, PathParams, PlatformTest, Post, QueryPara
|
|
|
2
2
|
import {UseCache, PlatformCache} from "@tsed/platform-cache";
|
|
3
3
|
import {Property} from "@tsed/schema";
|
|
4
4
|
import SuperTest from "supertest";
|
|
5
|
-
import {PlatformTestingSdkOpts} from "../interfaces";
|
|
5
|
+
import {PlatformTestingSdkOpts} from "../interfaces/index.js";
|
|
6
6
|
|
|
7
7
|
let increment = 0;
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {Controller, Get, PlatformTest} from "@tsed/common";
|
|
2
2
|
import SuperTest from "supertest";
|
|
3
|
-
import {PlatformTestingSdkOpts} from "../interfaces";
|
|
3
|
+
import {PlatformTestingSdkOpts} from "../interfaces/index.js";
|
|
4
4
|
|
|
5
5
|
export function testChildrenControllers(options: PlatformTestingSdkOpts) {
|
|
6
6
|
let request: SuperTest.Agent;
|
package/src/tests/testCookies.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {Controller, CookiesParams, Get, PlatformTest} from "@tsed/common";
|
|
2
2
|
import SuperTest from "supertest";
|
|
3
|
-
import {PlatformTestingSdkOpts} from "../interfaces";
|
|
3
|
+
import {PlatformTestingSdkOpts} from "../interfaces/index.js";
|
|
4
4
|
|
|
5
5
|
@Controller("/cookies")
|
|
6
6
|
export class CookiesCtrl {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {PlatformTest} from "@tsed/common";
|
|
2
2
|
import SuperTest from "supertest";
|
|
3
|
-
import {PlatformTestingSdkOpts} from "../interfaces";
|
|
3
|
+
import {PlatformTestingSdkOpts} from "../interfaces/index.js";
|
|
4
4
|
|
|
5
5
|
export function testCustom404(options: PlatformTestingSdkOpts) {
|
|
6
6
|
class CustomServer extends options.server {}
|
|
@@ -2,7 +2,7 @@ import "@tsed/ajv";
|
|
|
2
2
|
import {Controller, Get, PlatformTest, QueryParams} from "@tsed/common";
|
|
3
3
|
import {Default, GenericOf, Generics, Maximum, Minimum, Property, Required} from "@tsed/schema";
|
|
4
4
|
import SuperTest from "supertest";
|
|
5
|
-
import {PlatformTestingSdkOpts} from "../interfaces";
|
|
5
|
+
import {PlatformTestingSdkOpts} from "../interfaces/index.js";
|
|
6
6
|
|
|
7
7
|
class FindQuery {
|
|
8
8
|
@Property()
|