@tsed/platform-test-sdk 7.80.0 → 7.80.2
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.
|
@@ -8,7 +8,7 @@ const multer_1 = tslib_1.__importDefault(require("multer"));
|
|
|
8
8
|
const path_1 = require("path");
|
|
9
9
|
const read_pkg_up_1 = tslib_1.__importDefault(require("read-pkg-up"));
|
|
10
10
|
const supertest_1 = tslib_1.__importDefault(require("supertest"));
|
|
11
|
-
const rootDir = __dirname; // automatically replaced by
|
|
11
|
+
const rootDir = __dirname; // automatically replaced by __dirname on build
|
|
12
12
|
class Task {
|
|
13
13
|
id;
|
|
14
14
|
title;
|
|
@@ -7,7 +7,7 @@ const schema_1 = require("@tsed/schema");
|
|
|
7
7
|
const fs_1 = require("fs");
|
|
8
8
|
const path_1 = require("path");
|
|
9
9
|
const supertest_1 = tslib_1.__importDefault(require("supertest"));
|
|
10
|
-
const rootDir = __dirname; // automatically replaced by
|
|
10
|
+
const rootDir = __dirname; // automatically replaced by __dirname on build
|
|
11
11
|
let TestStreamCtrl = class TestStreamCtrl {
|
|
12
12
|
testScenario1() {
|
|
13
13
|
return (0, fs_1.createReadStream)((0, path_1.join)(rootDir, "../data/response.data.json"), "utf-8");
|
|
@@ -5,7 +5,7 @@ import multer from "multer";
|
|
|
5
5
|
import { dirname, join } from "path";
|
|
6
6
|
import readPkgUp from "read-pkg-up";
|
|
7
7
|
import SuperTest from "supertest";
|
|
8
|
-
const rootDir =
|
|
8
|
+
const rootDir = import.meta.dirname; // automatically replaced by import.meta.dirname on build
|
|
9
9
|
export class Task {
|
|
10
10
|
id;
|
|
11
11
|
title;
|
|
@@ -100,7 +100,7 @@ export function testMulter(options) {
|
|
|
100
100
|
let request;
|
|
101
101
|
const buffer = Buffer.from("test content");
|
|
102
102
|
const pkg = readPkgUp.sync({
|
|
103
|
-
cwd:
|
|
103
|
+
cwd: import.meta.dirname
|
|
104
104
|
});
|
|
105
105
|
const rootDir = join(dirname(pkg?.path || ""), "src");
|
|
106
106
|
beforeAll(PlatformTest.bootstrap(options.server, {
|
|
@@ -4,7 +4,7 @@ import { ContentType } from "@tsed/schema";
|
|
|
4
4
|
import { createReadStream } from "fs";
|
|
5
5
|
import { join } from "path";
|
|
6
6
|
import SuperTest from "supertest";
|
|
7
|
-
const rootDir =
|
|
7
|
+
const rootDir = import.meta.dirname; // automatically replaced by import.meta.dirname on build
|
|
8
8
|
let TestStreamCtrl = class TestStreamCtrl {
|
|
9
9
|
testScenario1() {
|
|
10
10
|
return createReadStream(join(rootDir, "../data/response.data.json"), "utf-8");
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/platform-test-sdk",
|
|
3
3
|
"description": "Package to test platform adapter integration with Ts.ED",
|
|
4
4
|
"type": "commonjs",
|
|
5
|
-
"version": "7.80.
|
|
5
|
+
"version": "7.80.2",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/cjs/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
".": {
|
|
12
12
|
"types": "./lib/types/index.d.ts",
|
|
13
13
|
"import": "./lib/esm/index.js",
|
|
14
|
+
"require": "./lib/cjs/index.js",
|
|
14
15
|
"default": "./lib/cjs/index.js"
|
|
15
16
|
}
|
|
16
17
|
},
|
|
@@ -27,27 +28,26 @@
|
|
|
27
28
|
"Adapter"
|
|
28
29
|
],
|
|
29
30
|
"dependencies": {
|
|
30
|
-
"@tsed/ajv": "7.80.
|
|
31
|
-
"@tsed/common": "7.80.
|
|
32
|
-
"@tsed/core": "7.80.
|
|
33
|
-
"@tsed/di": "7.80.
|
|
34
|
-
"@tsed/json-mapper": "7.80.
|
|
31
|
+
"@tsed/ajv": "7.80.2",
|
|
32
|
+
"@tsed/common": "7.80.2",
|
|
33
|
+
"@tsed/core": "7.80.2",
|
|
34
|
+
"@tsed/di": "7.80.2",
|
|
35
|
+
"@tsed/json-mapper": "7.80.2",
|
|
35
36
|
"@tsed/logger": "6.6.3",
|
|
36
|
-
"@tsed/platform-cache": "7.80.
|
|
37
|
-
"@tsed/platform-params": "7.80.
|
|
38
|
-
"@tsed/platform-router": "7.80.
|
|
39
|
-
"@tsed/platform-views": "7.80.
|
|
40
|
-
"@tsed/schema": "7.80.
|
|
41
|
-
"@tsed/swagger": "7.80.
|
|
37
|
+
"@tsed/platform-cache": "7.80.2",
|
|
38
|
+
"@tsed/platform-params": "7.80.2",
|
|
39
|
+
"@tsed/platform-router": "7.80.2",
|
|
40
|
+
"@tsed/platform-views": "7.80.2",
|
|
41
|
+
"@tsed/schema": "7.80.2",
|
|
42
|
+
"@tsed/swagger": "7.80.2",
|
|
42
43
|
"ajv": "^8.12.0",
|
|
43
44
|
"axios": "1.7.4",
|
|
44
45
|
"read-pkg-up": "7.0.1"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"@tsed/barrels": "7.80.
|
|
48
|
-
"@tsed/typescript": "7.80.
|
|
48
|
+
"@tsed/barrels": "7.80.2",
|
|
49
|
+
"@tsed/typescript": "7.80.2",
|
|
49
50
|
"eslint": "^8.57.0",
|
|
50
|
-
"jest": "^29.7.0",
|
|
51
51
|
"typescript": "4.9.5"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {},
|