@empiricalrun/test-run 0.10.7 → 0.10.9
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 +12 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @empiricalrun/test-run
|
|
2
2
|
|
|
3
|
+
## 0.10.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 450b79a: feat: show resolved projects for environments in cli
|
|
8
|
+
|
|
9
|
+
## 0.10.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- f44505a: fix: smaller responses from run-test tool
|
|
14
|
+
|
|
3
15
|
## 0.10.7
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { JSONReport as PlaywrightJSONReport } from "@playwright/test/reporter";
|
|
1
2
|
import { spawnCmd } from "./lib/cmd";
|
|
2
3
|
import { runSpecificTestsCmd } from "./lib/run-specific-test";
|
|
3
4
|
import { Platform, TestCase } from "./types";
|
|
4
5
|
import { getProjectsFromPlaywrightConfig } from "./utils/config";
|
|
5
6
|
export { getProjectsFromPlaywrightConfig, Platform, runSpecificTestsCmd, spawnCmd, };
|
|
7
|
+
export { filterArrayByGlobMatchersSet, generateProjectFilters } from "./utils";
|
|
6
8
|
export declare function runSingleTest({ testName, suites, filePath, projects, envOverrides, repoDir, }: {
|
|
7
9
|
testName: string;
|
|
8
10
|
suites: string[];
|
|
@@ -12,7 +14,7 @@ export declare function runSingleTest({ testName, suites, filePath, projects, en
|
|
|
12
14
|
repoDir: string;
|
|
13
15
|
}): Promise<{
|
|
14
16
|
hasTestPassed: boolean;
|
|
15
|
-
summaryJson:
|
|
17
|
+
summaryJson: PlaywrightJSONReport;
|
|
16
18
|
}>;
|
|
17
19
|
export declare function getAllPlaywrightProjects(repoDir: string): Promise<{
|
|
18
20
|
projects: string[];
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAI/E,OAAO,EAAkB,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AAMjE,OAAO,EACL,+BAA+B,EAC/B,QAAQ,EACR,mBAAmB,EACnB,QAAQ,GACT,CAAC;AACF,OAAO,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAc/E,wBAAsB,aAAa,CAAC,EAClC,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,OAAO,GACR,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC;IACV,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,oBAAoB,CAAC;CACnC,CAAC,CAiBD;AAED,wBAAsB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;IACvE,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;CACjD,CAAC,CAaD"}
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.spawnCmd = exports.runSpecificTestsCmd = exports.Platform = exports.getProjectsFromPlaywrightConfig = void 0;
|
|
6
|
+
exports.generateProjectFilters = exports.filterArrayByGlobMatchersSet = exports.spawnCmd = exports.runSpecificTestsCmd = exports.Platform = exports.getProjectsFromPlaywrightConfig = void 0;
|
|
7
7
|
exports.runSingleTest = runSingleTest;
|
|
8
8
|
exports.getAllPlaywrightProjects = getAllPlaywrightProjects;
|
|
9
9
|
const fs_1 = __importDefault(require("fs"));
|
|
@@ -21,6 +21,9 @@ Object.defineProperty(exports, "getProjectsFromPlaywrightConfig", { enumerable:
|
|
|
21
21
|
// For test-run package, the library entrypoint, we only support web platform
|
|
22
22
|
// The bin entrypoint has support for mobile also
|
|
23
23
|
const supportedPlatform = types_1.Platform.WEB;
|
|
24
|
+
var utils_2 = require("./utils");
|
|
25
|
+
Object.defineProperty(exports, "filterArrayByGlobMatchersSet", { enumerable: true, get: function () { return utils_2.filterArrayByGlobMatchersSet; } });
|
|
26
|
+
Object.defineProperty(exports, "generateProjectFilters", { enumerable: true, get: function () { return utils_2.generateProjectFilters; } });
|
|
24
27
|
function getSummaryJsonPath(repoDir) {
|
|
25
28
|
const pathForPlaywright147 = path_1.default.join(repoDir, "playwright-report", "summary.json");
|
|
26
29
|
const pathForOtherPlaywrightVersions = path_1.default.join(repoDir, "summary.json");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empiricalrun/test-run",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"@types/async-retry": "^1.4.8",
|
|
27
27
|
"@types/console-log-level": "^1.4.5",
|
|
28
28
|
"@types/node": "^22.5.5",
|
|
29
|
+
"@playwright/test": "1.53.2",
|
|
29
30
|
"memfs": "^4.17.1"
|
|
30
31
|
},
|
|
31
32
|
"scripts": {
|