@empiricalrun/test-gen 0.52.0 → 0.52.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/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../../src/agent/master/browser-tests/fixtures.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../../src/agent/master/browser-tests/fixtures.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,MAAM,uCAAc,CAAC;AAClC,eAAO,MAAM,IAAI;YAA6B,aAAa;EAwBzD,CAAC"}
|
|
@@ -5,16 +5,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.test = exports.expect = void 0;
|
|
7
7
|
const test_1 = require("@playwright/test");
|
|
8
|
-
const
|
|
8
|
+
const http_1 = __importDefault(require("http"));
|
|
9
9
|
const path_1 = __importDefault(require("path"));
|
|
10
|
+
const serve_handler_1 = __importDefault(require("serve-handler"));
|
|
10
11
|
exports.expect = test_1.test.expect;
|
|
11
12
|
exports.test = test_1.test.extend({
|
|
12
13
|
server: [
|
|
13
14
|
// eslint-disable-next-line no-empty-pattern
|
|
14
15
|
async ({}, use, workerInfo) => {
|
|
15
16
|
const port = 2345 + workerInfo.workerIndex;
|
|
16
|
-
const server =
|
|
17
|
-
|
|
17
|
+
const server = http_1.default.createServer((request, response) => {
|
|
18
|
+
return (0, serve_handler_1.default)(request, response, {
|
|
19
|
+
public: path_1.default.join(process.cwd(), "test-data"),
|
|
20
|
+
});
|
|
18
21
|
});
|
|
19
22
|
await new Promise((resolve) => {
|
|
20
23
|
server.listen(port, () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empiricalrun/test-gen",
|
|
3
|
-
"version": "0.52.
|
|
3
|
+
"version": "0.52.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -85,13 +85,13 @@
|
|
|
85
85
|
"@types/detect-port": "^1.3.5",
|
|
86
86
|
"@types/express": "^4.17.21",
|
|
87
87
|
"@types/fs-extra": "^11.0.4",
|
|
88
|
-
"@types/http-server": "^0.12.4",
|
|
89
88
|
"@types/js-levenshtein": "^1.1.3",
|
|
90
89
|
"@types/jsdom": "^21.1.7",
|
|
91
90
|
"@types/md5": "^2.3.5",
|
|
92
|
-
"
|
|
91
|
+
"@types/serve-handler": "^6.1.4",
|
|
93
92
|
"js-levenshtein": "^1.1.6",
|
|
94
93
|
"playwright": "1.47.1",
|
|
94
|
+
"serve-handler": "^6.1.6",
|
|
95
95
|
"ts-patch": "^3.3.0",
|
|
96
96
|
"@empiricalrun/shared-types": "0.0.7"
|
|
97
97
|
},
|