@empiricalrun/test-run 0.10.4 → 0.10.6

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,17 @@
1
1
  # @empiricalrun/test-run
2
2
 
3
+ ## 0.10.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 298b5e5: feat: ask for project name in recorder flow
8
+
9
+ ## 0.10.5
10
+
11
+ ### Patch Changes
12
+
13
+ - ff84083: feat: request verification for recording, more logs clean up
14
+
3
15
  ## 0.10.4
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { spawnCmd } from "./lib/cmd";
2
2
  import { runSpecificTestsCmd } from "./lib/run-specific-test";
3
- import { TestCase } from "./types";
4
- export { runSpecificTestsCmd, spawnCmd };
3
+ import { Platform, TestCase } from "./types";
4
+ import { getProjectsFromPlaywrightConfig } from "./utils/config";
5
+ export { getProjectsFromPlaywrightConfig, Platform, runSpecificTestsCmd, spawnCmd, };
5
6
  export declare function runSingleTest({ testName, suites, filePath, projects, envOverrides, repoDir, }: {
6
7
  testName: string;
7
8
  suites: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkB,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAY,QAAQ,EAAE,MAAM,SAAS,CAAC;AAO7C,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC;AAczC,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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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 = void 0;
6
+ 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"));
@@ -14,7 +14,10 @@ const run_specific_test_1 = require("./lib/run-specific-test");
14
14
  Object.defineProperty(exports, "runSpecificTestsCmd", { enumerable: true, get: function () { return run_specific_test_1.runSpecificTestsCmd; } });
15
15
  const parser_1 = require("./parser");
16
16
  const types_1 = require("./types");
17
+ Object.defineProperty(exports, "Platform", { enumerable: true, get: function () { return types_1.Platform; } });
17
18
  const utils_1 = require("./utils");
19
+ const config_1 = require("./utils/config");
20
+ Object.defineProperty(exports, "getProjectsFromPlaywrightConfig", { enumerable: true, get: function () { return config_1.getProjectsFromPlaywrightConfig; } });
18
21
  // For test-run package, the library entrypoint, we only support web platform
19
22
  // The bin entrypoint has support for mobile also
20
23
  const supportedPlatform = types_1.Platform.WEB;
package/dist/lib/cmd.js CHANGED
@@ -79,7 +79,7 @@ async function spawnCmd(command, args, options) {
79
79
  }
80
80
  function setupProcessSignalHandlers(proc) {
81
81
  const handleSignal = async (signal) => {
82
- console.log(`\nReceived ${signal}, gracefully shutting down...`);
82
+ logger_1.logger.debug(`\nReceived ${signal}, gracefully shutting down...`);
83
83
  if (proc && !proc.killed) {
84
84
  // Forward the signal to the child process
85
85
  proc.kill(signal);
@@ -4,6 +4,7 @@ type PlaywrightProject = {
4
4
  use: any;
5
5
  testMatch: string[] | string | undefined;
6
6
  testIgnore: string[] | string | undefined;
7
+ testDir: string | undefined;
7
8
  teardown: string | undefined;
8
9
  };
9
10
  export declare function getProjectsFromPlaywrightConfig(platform: Platform, repoDir: string): Promise<PlaywrightProject[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/utils/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,GAAG,CAAC;IACT,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAC;IACzC,UAAU,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAC;IAC1C,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,wBAAsB,+BAA+B,CACnD,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,iBAAiB,EAAE,CAAC,CA+B9B"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/utils/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,GAAG,CAAC;IACT,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAC;IACzC,UAAU,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAC;IAC1C,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,wBAAsB,+BAA+B,CACnD,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,iBAAiB,EAAE,CAAC,CA+B9B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empiricalrun/test-run",
3
- "version": "0.10.4",
3
+ "version": "0.10.6",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"