@tsed/platform-test-sdk 7.70.2 → 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.
Files changed (106) hide show
  1. package/.barrelsby.json +5 -0
  2. package/lib/cjs/components/PlatformTestSdk.js +2 -2
  3. package/lib/cjs/components/PlatformTestSdk.js.map +1 -1
  4. package/lib/cjs/index.js +40 -39
  5. package/lib/cjs/index.js.map +1 -1
  6. package/lib/cjs/interfaces/index.js +4 -4
  7. package/lib/cjs/interfaces/index.js.map +1 -1
  8. package/lib/cjs/modules/feature/FeatureModule.js +2 -2
  9. package/lib/cjs/modules/feature/FeatureModule.js.map +1 -1
  10. package/lib/cjs/tests/exports.js +58 -58
  11. package/lib/cjs/tests/exports.js.map +1 -1
  12. package/lib/cjs/tests/testErrors.js +6 -6
  13. package/lib/cjs/tests/testErrors.js.map +1 -1
  14. package/lib/cjs/tests/testModule.js +2 -2
  15. package/lib/cjs/tests/testModule.js.map +1 -1
  16. package/lib/cjs/tests/testMulter.js +1 -3
  17. package/lib/cjs/tests/testMulter.js.map +1 -1
  18. package/lib/cjs/tests/testResponse.js +0 -1
  19. package/lib/cjs/tests/testResponse.js.map +1 -1
  20. package/lib/cjs/tests/testStream.js +1 -3
  21. package/lib/cjs/tests/testStream.js.map +1 -1
  22. package/lib/esm/components/PlatformTestSdk.js.map +1 -1
  23. package/lib/esm/index.js +3 -2
  24. package/lib/esm/index.js.map +1 -1
  25. package/lib/esm/interfaces/index.js +1 -1
  26. package/lib/esm/interfaces/index.js.map +1 -1
  27. package/lib/esm/modules/feature/FeatureModule.js.map +1 -1
  28. package/lib/esm/tests/exports.js.map +1 -1
  29. package/lib/esm/tests/testErrors.js.map +1 -1
  30. package/lib/esm/tests/testModule.js.map +1 -1
  31. package/lib/esm/tests/testMulter.js +2 -4
  32. package/lib/esm/tests/testMulter.js.map +1 -1
  33. package/lib/esm/tests/testResponse.js +0 -1
  34. package/lib/esm/tests/testResponse.js.map +1 -1
  35. package/lib/esm/tests/testStream.js +1 -3
  36. package/lib/esm/tests/testStream.js.map +1 -1
  37. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  38. package/lib/tsconfig.tsbuildinfo +1 -1
  39. package/lib/types/components/PlatformTestSdk.d.ts +1 -1
  40. package/lib/types/index.d.ts +38 -37
  41. package/lib/types/interfaces/index.d.ts +2 -2
  42. package/lib/types/tests/exports.d.ts +1 -1
  43. package/lib/types/tests/testAcceptMime.d.ts +1 -1
  44. package/lib/types/tests/testAuth.d.ts +1 -1
  45. package/lib/types/tests/testBodyParams.d.ts +1 -1
  46. package/lib/types/tests/testCache.d.ts +1 -1
  47. package/lib/types/tests/testChildrenControllers.d.ts +1 -1
  48. package/lib/types/tests/testCookies.d.ts +1 -1
  49. package/lib/types/tests/testCustom404.d.ts +1 -1
  50. package/lib/types/tests/testDeepQueryParams.d.ts +1 -1
  51. package/lib/types/tests/testErrors.d.ts +1 -1
  52. package/lib/types/tests/testHandlers.d.ts +1 -1
  53. package/lib/types/tests/testHeaderParams.d.ts +1 -1
  54. package/lib/types/tests/testHeaders.d.ts +1 -1
  55. package/lib/types/tests/testInheritanceController.d.ts +1 -1
  56. package/lib/types/tests/testLocals.d.ts +1 -1
  57. package/lib/types/tests/testLocation.d.ts +1 -1
  58. package/lib/types/tests/testMiddlewares.d.ts +1 -1
  59. package/lib/types/tests/testModule.d.ts +1 -1
  60. package/lib/types/tests/testMulter.d.ts +1 -1
  61. package/lib/types/tests/testPathParams.d.ts +1 -1
  62. package/lib/types/tests/testQueryParams.d.ts +1 -1
  63. package/lib/types/tests/testRedirect.d.ts +1 -1
  64. package/lib/types/tests/testResponse.d.ts +1 -1
  65. package/lib/types/tests/testResponseFilter.d.ts +1 -1
  66. package/lib/types/tests/testRouting.d.ts +1 -1
  67. package/lib/types/tests/testScopeRequest.d.ts +1 -1
  68. package/lib/types/tests/testSession.d.ts +1 -1
  69. package/lib/types/tests/testStatics.d.ts +1 -1
  70. package/lib/types/tests/testStream.d.ts +1 -1
  71. package/lib/types/tests/testView.d.ts +1 -1
  72. package/package.json +17 -16
  73. package/src/components/PlatformTestSdk.ts +2 -2
  74. package/src/index.ts +38 -38
  75. package/src/interfaces/index.ts +2 -3
  76. package/src/modules/feature/FeatureModule.ts +1 -1
  77. package/src/tests/exports.ts +30 -30
  78. package/src/tests/testAcceptMime.ts +1 -1
  79. package/src/tests/testAuth.ts +1 -1
  80. package/src/tests/testBodyParams.ts +1 -1
  81. package/src/tests/testCache.ts +1 -1
  82. package/src/tests/testChildrenControllers.ts +1 -1
  83. package/src/tests/testCookies.ts +1 -1
  84. package/src/tests/testCustom404.ts +1 -1
  85. package/src/tests/testDeepQueryParams.ts +1 -1
  86. package/src/tests/testErrors.ts +3 -3
  87. package/src/tests/testHandlers.ts +1 -1
  88. package/src/tests/testHeaderParams.ts +1 -1
  89. package/src/tests/testHeaders.ts +1 -1
  90. package/src/tests/testInheritanceController.ts +1 -1
  91. package/src/tests/testLocals.ts +1 -1
  92. package/src/tests/testLocation.ts +1 -1
  93. package/src/tests/testMiddlewares.ts +1 -1
  94. package/src/tests/testModule.ts +2 -2
  95. package/src/tests/testMulter.ts +2 -4
  96. package/src/tests/testPathParams.ts +1 -1
  97. package/src/tests/testQueryParams.ts +1 -1
  98. package/src/tests/testRedirect.ts +1 -1
  99. package/src/tests/testResponse.ts +1 -3
  100. package/src/tests/testResponseFilter.ts +1 -1
  101. package/src/tests/testRouting.ts +1 -1
  102. package/src/tests/testScopeRequest.ts +1 -1
  103. package/src/tests/testSession.ts +1 -1
  104. package/src/tests/testStatics.ts +1 -1
  105. package/src/tests/testStream.ts +3 -4
  106. package/src/tests/testView.ts +1 -1
@@ -1,4 +1,4 @@
1
- import { PlatformTestingSdkOpts } from "../interfaces/index";
1
+ import { PlatformTestingSdkOpts } from "../interfaces/index.js";
2
2
  export declare class PlatformTestSdk {
3
3
  private options;
4
4
  protected constructor(options: PlatformTestingSdkOpts);
@@ -1,39 +1,40 @@
1
1
  /**
2
- * @file Automatically generated by barrelsby.
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/PlatformTestingSdkOpts";
8
- export * from "./modules/feature/FeatureModule";
9
- export * from "./modules/feature/controllers/FeatureController";
10
- export * from "./tests/exports";
11
- export * from "./tests/testAcceptMime";
12
- export * from "./tests/testAuth";
13
- export * from "./tests/testBodyParams";
14
- export * from "./tests/testCache";
15
- export * from "./tests/testChildrenControllers";
16
- export * from "./tests/testCookies";
17
- export * from "./tests/testCustom404";
18
- export * from "./tests/testDeepQueryParams";
19
- export * from "./tests/testErrors";
20
- export * from "./tests/testHandlers";
21
- export * from "./tests/testHeaderParams";
22
- export * from "./tests/testHeaders";
23
- export * from "./tests/testInheritanceController";
24
- export * from "./tests/testLocals";
25
- export * from "./tests/testLocation";
26
- export * from "./tests/testMiddlewares";
27
- export * from "./tests/testModule";
28
- export * from "./tests/testMulter";
29
- export * from "./tests/testPathParams";
30
- export * from "./tests/testQueryParams";
31
- export * from "./tests/testRedirect";
32
- export * from "./tests/testResponse";
33
- export * from "./tests/testResponseFilter";
34
- export * from "./tests/testRouting";
35
- export * from "./tests/testScopeRequest";
36
- export * from "./tests/testSession";
37
- export * from "./tests/testStatics";
38
- export * from "./tests/testStream";
39
- 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";
@@ -1,4 +1,4 @@
1
1
  /**
2
- * @file Automatically generated by barrelsby.
2
+ * @file Automatically generated by @tsed/barrels.
3
3
  */
4
- export * from "./PlatformTestingSdkOpts";
4
+ export * from "./PlatformTestingSdkOpts.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,4 +1,4 @@
1
- import { PlatformTestingSdkOpts } from "../interfaces";
1
+ import { PlatformTestingSdkOpts } from "../interfaces/index.js";
2
2
  export declare class TokenService {
3
3
  private _token;
4
4
  token(token?: string): string;
@@ -1,3 +1,3 @@
1
1
  import "@tsed/ajv";
2
- import { PlatformTestingSdkOpts } from "../interfaces";
2
+ import { PlatformTestingSdkOpts } from "../interfaces/index.js";
3
3
  export declare function testBodyParams(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,4 +1,4 @@
1
- import { PlatformTestingSdkOpts } from "../interfaces";
1
+ import { PlatformTestingSdkOpts } from "../interfaces/index.js";
2
2
  export declare class CookiesCtrl {
3
3
  /**
4
4
  * Handle request and get auth from cookies
@@ -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,3 +1,3 @@
1
1
  import "@tsed/ajv";
2
- import { PlatformTestingSdkOpts } from "../interfaces";
2
+ import { PlatformTestingSdkOpts } from "../interfaces/index.js";
3
3
  export declare function testDeepQueryParams(options: PlatformTestingSdkOpts): void;
@@ -1,5 +1,5 @@
1
1
  import "@tsed/ajv";
2
- import { PlatformTestingSdkOpts } from "../interfaces";
2
+ import { PlatformTestingSdkOpts } from "../interfaces/index.js";
3
3
  declare class CustomModel {
4
4
  name: string;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { Context } from "@tsed/common";
2
- import { PlatformTestingSdkOpts } from "../interfaces";
2
+ import { PlatformTestingSdkOpts } from "../interfaces/index.js";
3
3
  export declare class MyModel {
4
4
  id: string;
5
5
  name: string;
@@ -1,5 +1,5 @@
1
1
  import { Req } from "@tsed/common";
2
- import { PlatformTestingSdkOpts } from "../interfaces";
2
+ import { PlatformTestingSdkOpts } from "../interfaces/index.js";
3
3
  export declare class HeaderParamsCtrl {
4
4
  /**
5
5
  * Handle request with a raw middleware + handler
@@ -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,4 +1,4 @@
1
- import { PlatformTestingSdkOpts } from "../interfaces";
1
+ import { PlatformTestingSdkOpts } from "../interfaces/index.js";
2
2
  export declare class Resource {
3
3
  id: string;
4
4
  name: 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,5 +1,5 @@
1
1
  import { PlatformMulterFile } from "@tsed/common";
2
- import { PlatformTestingSdkOpts } from "../interfaces";
2
+ import { PlatformTestingSdkOpts } from "../interfaces/index.js";
3
3
  export declare class Task {
4
4
  id: string;
5
5
  title: string;
@@ -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,5 +1,5 @@
1
1
  import "@tsed/ajv";
2
- import { PlatformTestingSdkOpts } from "../interfaces";
2
+ import { PlatformTestingSdkOpts } from "../interfaces/index.js";
3
3
  export declare class RandomStringModel {
4
4
  length: number;
5
5
  }
@@ -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,4 +1,4 @@
1
- import { PlatformTestingSdkOpts } from "../interfaces";
1
+ import { PlatformTestingSdkOpts } from "../interfaces/index.js";
2
2
  export declare enum EnumValue {
3
3
  One = "one",
4
4
  Two = "two"
@@ -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,4 +1,4 @@
1
- import { PlatformTestingSdkOpts } from "../interfaces";
1
+ import { PlatformTestingSdkOpts } from "../interfaces/index.js";
2
2
  export declare class TestRoutingController {
3
3
  scenario1(): string;
4
4
  scenario2(): string;
@@ -1,4 +1,4 @@
1
- import { PlatformTestingSdkOpts } from "../interfaces";
1
+ import { PlatformTestingSdkOpts } from "../interfaces/index.js";
2
2
  export declare class ScopeRequestService {
3
3
  user: string;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { PlatformTestingSdkOpts } from "../interfaces";
1
+ import { PlatformTestingSdkOpts } from "../interfaces/index.js";
2
2
  export declare class UserCreation {
3
3
  name: string;
4
4
  email: string;
@@ -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.70.2",
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": "yarn barrelsby --delete -d ./src -d ./src/interfaces -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"",
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.70.2",
29
- "@tsed/common": "7.70.2",
30
- "@tsed/core": "7.70.2",
31
- "@tsed/di": "7.70.2",
32
- "@tsed/json-mapper": "7.70.2",
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.70.2",
35
- "@tsed/platform-params": "7.70.2",
36
- "@tsed/platform-router": "7.70.2",
37
- "@tsed/platform-views": "7.70.2",
38
- "@tsed/schema": "7.70.2",
39
- "@tsed/swagger": "7.70.2",
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/typescript": "7.70.2",
46
- "barrelsby": "^2.8.1",
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 barrelsby.
2
+ * @file Automatically generated by @tsed/barrels.
3
3
  */
4
-
5
- export * from "./components/PlatformTestSdk";
6
- export * from "./errors/CustomBadRequest";
7
- export * from "./errors/CustomInternalError";
8
- export * from "./interfaces/PlatformTestingSdkOpts";
9
- export * from "./modules/feature/FeatureModule";
10
- export * from "./modules/feature/controllers/FeatureController";
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";
@@ -1,5 +1,4 @@
1
1
  /**
2
- * @file Automatically generated by barrelsby.
2
+ * @file Automatically generated by @tsed/barrels.
3
3
  */
4
-
5
- export * from "./PlatformTestingSdkOpts";
4
+ export * from "./PlatformTestingSdkOpts.js";
@@ -1,5 +1,5 @@
1
1
  import {Module} from "@tsed/di";
2
- import {FeatureController} from "./controllers/FeatureController";
2
+ import {FeatureController} from "./controllers/FeatureController.js";
3
3
 
4
4
  @Module({
5
5
  mount: {
@@ -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 {
@@ -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 {
@@ -15,7 +15,7 @@ import {
15
15
  Consumes
16
16
  } from "@tsed/schema";
17
17
  import SuperTest from "supertest";
18
- import {PlatformTestingSdkOpts} from "../interfaces";
18
+ import {PlatformTestingSdkOpts} from "../interfaces/index.js";
19
19
 
20
20
  enum MyEnum {
21
21
  TITLE,
@@ -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;
@@ -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()