@empiricalrun/test-run 0.7.2 → 0.7.3

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,5 +1,11 @@
1
1
  # @empiricalrun/test-run
2
2
 
3
+ ## 0.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - b14d5bf: feat: support headed executions of test run tool
8
+
3
9
  ## 0.7.2
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import { TestCase } from "./types";
2
- export declare function runSingleTest({ testName, suites, fileName, projects, }: {
2
+ export declare function runSingleTest({ testName, suites, fileName, projects, headed, }: {
3
3
  testName: string;
4
4
  suites: string[];
5
5
  fileName: string;
6
6
  projects?: string[];
7
+ headed?: boolean;
7
8
  }): Promise<{
8
9
  hasTestPassed: boolean;
9
10
  summaryJson: any;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAY,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG7C,wBAAsB,aAAa,CAAC,EAClC,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;;;GAqBA;AAED,wBAAsB,YAAY,CAChC,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CA6CnC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAY,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG7C,wBAAsB,aAAa,CAAC,EAClC,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,MAAM,GACP,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;;;GAuBA;AAED,wBAAsB,YAAY,CAChC,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CA6CnC"}
package/dist/index.js CHANGED
@@ -9,12 +9,13 @@ const path_1 = __importDefault(require("path"));
9
9
  const lib_1 = require("./lib");
10
10
  const types_1 = require("./types");
11
11
  const utils_1 = require("./utils");
12
- async function runSingleTest({ testName, suites, fileName, projects, }) {
12
+ async function runSingleTest({ testName, suites, fileName, projects, headed, }) {
13
13
  const testDir = "tests";
14
14
  const filePath = path_1.default.relative(process.cwd(), fileName);
15
+ const pwOptions = headed ? "--headed" : "";
15
16
  const result = await (0, lib_1._runTest)({
16
17
  tests: [{ name: testName, dir: testDir, filePath, suites }],
17
- pwOptions: "",
18
+ pwOptions,
18
19
  platform: types_1.Platform.WEB,
19
20
  projects,
20
21
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empiricalrun/test-run",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"