@tsed/platform-test-sdk 7.67.3 → 7.67.5
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/lib/cjs/tests/testBodyParams.js +9 -4
- package/lib/cjs/tests/testBodyParams.js.map +1 -1
- package/lib/cjs/tests/testDeepQueryParams.js +1 -0
- package/lib/cjs/tests/testDeepQueryParams.js.map +1 -1
- package/lib/cjs/tests/testErrors.js +6 -3
- package/lib/cjs/tests/testErrors.js.map +1 -1
- package/lib/cjs/tests/testHeaderParams.js +4 -2
- package/lib/cjs/tests/testHeaderParams.js.map +1 -1
- package/lib/cjs/tests/testMulter.js +2 -1
- package/lib/cjs/tests/testMulter.js.map +1 -1
- package/lib/cjs/tests/testPathParams.js +2 -1
- package/lib/cjs/tests/testPathParams.js.map +1 -1
- package/lib/cjs/tests/testQueryParams.js +2 -1
- package/lib/cjs/tests/testQueryParams.js.map +1 -1
- package/lib/cjs/tests/testResponse.js +2 -1
- package/lib/cjs/tests/testResponse.js.map +1 -1
- package/lib/esm/tests/testBodyParams.js +9 -4
- package/lib/esm/tests/testBodyParams.js.map +1 -1
- package/lib/esm/tests/testDeepQueryParams.js +1 -0
- package/lib/esm/tests/testDeepQueryParams.js.map +1 -1
- package/lib/esm/tests/testErrors.js +6 -3
- package/lib/esm/tests/testErrors.js.map +1 -1
- package/lib/esm/tests/testHeaderParams.js +4 -2
- package/lib/esm/tests/testHeaderParams.js.map +1 -1
- package/lib/esm/tests/testMulter.js +2 -1
- package/lib/esm/tests/testMulter.js.map +1 -1
- package/lib/esm/tests/testPathParams.js +2 -1
- package/lib/esm/tests/testPathParams.js.map +1 -1
- package/lib/esm/tests/testQueryParams.js +2 -1
- package/lib/esm/tests/testQueryParams.js.map +1 -1
- package/lib/esm/tests/testResponse.js +2 -1
- package/lib/esm/tests/testResponse.js.map +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -13
- package/src/tests/testBodyParams.ts +9 -4
- package/src/tests/testDeepQueryParams.ts +1 -0
- package/src/tests/testErrors.ts +6 -3
- package/src/tests/testHeaderParams.ts +4 -2
- package/src/tests/testMulter.ts +2 -1
- package/src/tests/testPathParams.ts +2 -1
- package/src/tests/testQueryParams.ts +2 -1
- package/src/tests/testResponse.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/platform-test-sdk",
|
|
3
|
-
"version": "7.67.
|
|
3
|
+
"version": "7.67.5",
|
|
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",
|
|
@@ -25,24 +25,24 @@
|
|
|
25
25
|
"Adapter"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@tsed/ajv": "7.67.
|
|
29
|
-
"@tsed/common": "7.67.
|
|
30
|
-
"@tsed/core": "7.67.
|
|
31
|
-
"@tsed/di": "7.67.
|
|
32
|
-
"@tsed/json-mapper": "7.67.
|
|
28
|
+
"@tsed/ajv": "7.67.5",
|
|
29
|
+
"@tsed/common": "7.67.5",
|
|
30
|
+
"@tsed/core": "7.67.5",
|
|
31
|
+
"@tsed/di": "7.67.5",
|
|
32
|
+
"@tsed/json-mapper": "7.67.5",
|
|
33
33
|
"@tsed/logger": "6.6.3",
|
|
34
|
-
"@tsed/platform-cache": "7.67.
|
|
35
|
-
"@tsed/platform-params": "7.67.
|
|
36
|
-
"@tsed/platform-router": "7.67.
|
|
37
|
-
"@tsed/platform-views": "7.67.
|
|
38
|
-
"@tsed/schema": "7.67.
|
|
39
|
-
"@tsed/swagger": "7.67.
|
|
34
|
+
"@tsed/platform-cache": "7.67.5",
|
|
35
|
+
"@tsed/platform-params": "7.67.5",
|
|
36
|
+
"@tsed/platform-router": "7.67.5",
|
|
37
|
+
"@tsed/platform-views": "7.67.5",
|
|
38
|
+
"@tsed/schema": "7.67.5",
|
|
39
|
+
"@tsed/swagger": "7.67.5",
|
|
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.67.
|
|
45
|
+
"@tsed/typescript": "7.67.5",
|
|
46
46
|
"barrelsby": "^2.8.1",
|
|
47
47
|
"eslint": "^8.57.0",
|
|
48
48
|
"jest": "^29.7.0"
|
|
@@ -243,7 +243,8 @@ export function testBodyParams(options: PlatformTestingSdkOpts) {
|
|
|
243
243
|
status: 400,
|
|
244
244
|
errors: [
|
|
245
245
|
{
|
|
246
|
-
|
|
246
|
+
requestPath: "body",
|
|
247
|
+
dataPath: ".test",
|
|
247
248
|
keyword: "required",
|
|
248
249
|
message: "It should have required parameter 'test'",
|
|
249
250
|
modelName: "body",
|
|
@@ -269,7 +270,8 @@ export function testBodyParams(options: PlatformTestingSdkOpts) {
|
|
|
269
270
|
status: 400,
|
|
270
271
|
errors: [
|
|
271
272
|
{
|
|
272
|
-
|
|
273
|
+
requestPath: "body",
|
|
274
|
+
dataPath: ".test",
|
|
273
275
|
keyword: "required",
|
|
274
276
|
message: "It should have required parameter 'test'",
|
|
275
277
|
modelName: "body",
|
|
@@ -288,7 +290,8 @@ export function testBodyParams(options: PlatformTestingSdkOpts) {
|
|
|
288
290
|
status: 400,
|
|
289
291
|
errors: [
|
|
290
292
|
{
|
|
291
|
-
dataPath: "",
|
|
293
|
+
dataPath: ".test",
|
|
294
|
+
requestPath: "body",
|
|
292
295
|
keyword: "required",
|
|
293
296
|
message: "It should have required parameter 'test'",
|
|
294
297
|
modelName: "body",
|
|
@@ -319,7 +322,8 @@ export function testBodyParams(options: PlatformTestingSdkOpts) {
|
|
|
319
322
|
status: 400,
|
|
320
323
|
errors: [
|
|
321
324
|
{
|
|
322
|
-
dataPath: "",
|
|
325
|
+
dataPath: ".test",
|
|
326
|
+
requestPath: "body",
|
|
323
327
|
keyword: "required",
|
|
324
328
|
message: "It should have required parameter 'test'",
|
|
325
329
|
modelName: "body",
|
|
@@ -422,6 +426,7 @@ export function testBodyParams(options: PlatformTestingSdkOpts) {
|
|
|
422
426
|
errors: [
|
|
423
427
|
{
|
|
424
428
|
data: 0,
|
|
429
|
+
requestPath: "body",
|
|
425
430
|
dataPath: ".limit",
|
|
426
431
|
instancePath: "/limit",
|
|
427
432
|
keyword: "minimum",
|
package/src/tests/testErrors.ts
CHANGED
|
@@ -150,7 +150,8 @@ export function testErrors(options: PlatformTestingSdkOpts) {
|
|
|
150
150
|
expect(response.body).toEqual({
|
|
151
151
|
errors: [
|
|
152
152
|
{
|
|
153
|
-
dataPath: "",
|
|
153
|
+
dataPath: ".name",
|
|
154
|
+
requestPath: "body",
|
|
154
155
|
keyword: "required",
|
|
155
156
|
message: "It should have required parameter 'name'",
|
|
156
157
|
modelName: "body",
|
|
@@ -172,7 +173,8 @@ export function testErrors(options: PlatformTestingSdkOpts) {
|
|
|
172
173
|
expect(response.body).toEqual({
|
|
173
174
|
errors: [
|
|
174
175
|
{
|
|
175
|
-
dataPath: "",
|
|
176
|
+
dataPath: ".name",
|
|
177
|
+
requestPath: "body",
|
|
176
178
|
instancePath: "",
|
|
177
179
|
keyword: "required",
|
|
178
180
|
message: "must have required property 'name'",
|
|
@@ -195,7 +197,8 @@ export function testErrors(options: PlatformTestingSdkOpts) {
|
|
|
195
197
|
expect(response.body).toEqual({
|
|
196
198
|
errors: [
|
|
197
199
|
{
|
|
198
|
-
dataPath: "",
|
|
200
|
+
dataPath: ".role_item",
|
|
201
|
+
requestPath: "body",
|
|
199
202
|
instancePath: "",
|
|
200
203
|
keyword: "required",
|
|
201
204
|
message: "must have required property 'role_item'",
|
|
@@ -107,7 +107,8 @@ export function testHeaderParams(options: PlatformTestingSdkOpts) {
|
|
|
107
107
|
expect(response.body).toEqual({
|
|
108
108
|
errors: [
|
|
109
109
|
{
|
|
110
|
-
|
|
110
|
+
requestPath: "header",
|
|
111
|
+
dataPath: ".x-token",
|
|
111
112
|
keyword: "required",
|
|
112
113
|
message: "It should have required parameter 'x-token'",
|
|
113
114
|
modelName: "header",
|
|
@@ -130,7 +131,8 @@ export function testHeaderParams(options: PlatformTestingSdkOpts) {
|
|
|
130
131
|
errors: [
|
|
131
132
|
{
|
|
132
133
|
data: "invalid",
|
|
133
|
-
|
|
134
|
+
requestPath: "header",
|
|
135
|
+
dataPath: ".x-token",
|
|
134
136
|
instancePath: "",
|
|
135
137
|
keyword: "enum",
|
|
136
138
|
message: "must be equal to one of the allowed values",
|
package/src/tests/testMulter.ts
CHANGED
|
@@ -113,7 +113,8 @@ export function testMulter(options: PlatformTestingSdkOpts) {
|
|
|
113
113
|
status: 400,
|
|
114
114
|
errors: [
|
|
115
115
|
{
|
|
116
|
-
dataPath: "",
|
|
116
|
+
dataPath: ".media.0",
|
|
117
|
+
requestPath: "files",
|
|
117
118
|
keyword: "required",
|
|
118
119
|
message: "It should have required parameter 'media.0'",
|
|
119
120
|
modelName: "files",
|
|
@@ -95,7 +95,8 @@ export function testPathParams(options: PlatformTestingSdkOpts) {
|
|
|
95
95
|
errors: [
|
|
96
96
|
{
|
|
97
97
|
data: "1",
|
|
98
|
-
|
|
98
|
+
requestPath: "path",
|
|
99
|
+
dataPath: ".scopeId",
|
|
99
100
|
instancePath: "",
|
|
100
101
|
keyword: "pattern",
|
|
101
102
|
message: 'must match pattern "^[0-9a-fA-F]{24}$"',
|
|
@@ -162,7 +162,8 @@ export function testQueryParams(options: PlatformTestingSdkOpts) {
|
|
|
162
162
|
errors: [
|
|
163
163
|
{
|
|
164
164
|
keyword: "type",
|
|
165
|
-
|
|
165
|
+
requestPath: "query",
|
|
166
|
+
dataPath: ".test",
|
|
166
167
|
instancePath: "",
|
|
167
168
|
schemaPath: "#/type",
|
|
168
169
|
params: {type: "number"},
|