@empiricalrun/test-gen 0.16.8 → 0.16.10

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-gen
2
2
 
3
+ ## 0.16.10
4
+
5
+ ### Patch Changes
6
+
7
+ - ef600f4: chore: add github output logs
8
+
9
+ ## 0.16.9
10
+
11
+ ### Patch Changes
12
+
13
+ - 8b39547: chore: test sync api for writing to git output
14
+
3
15
  ## 0.16.8
4
16
 
5
17
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"ci.d.ts","sourceRoot":"","sources":["../../src/reporter/ci.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,wBAAsB,UAAU,CAAC,SAAS,EAAE,QAAQ,EAAE,uBAkBrD"}
1
+ {"version":3,"file":"ci.d.ts","sourceRoot":"","sources":["../../src/reporter/ci.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,wBAAsB,UAAU,CAAC,SAAS,EAAE,QAAQ,EAAE,uBAsBrD"}
@@ -7,9 +7,9 @@ exports.reportOnCI = void 0;
7
7
  const fs_extra_1 = __importDefault(require("fs-extra"));
8
8
  async function reportOnCI(scenarios) {
9
9
  console.log("env::CI", "true");
10
- console.log("env::GITHUB_OUTPUT", "/home/runner/work/_temp/_runner_file_commands/set_output_d7d8ff8f-b245-45e2-815f-95578e554af7");
10
+ console.log("env::GITHUB_OUTPUT", "/home/runner/work/_temp/_runner_file_commands/set_output_1e614189-e40a-4b20-8ef0-f15bc9e3828d");
11
11
  console.log("scenarios", JSON.stringify(scenarios, null, 2));
12
- if ("true" && "/home/runner/work/_temp/_runner_file_commands/set_output_d7d8ff8f-b245-45e2-815f-95578e554af7") {
12
+ if ("true" && "/home/runner/work/_temp/_runner_file_commands/set_output_1e614189-e40a-4b20-8ef0-f15bc9e3828d") {
13
13
  const testNames = scenarios.map((s) => s.name).join(" ");
14
14
  const scenariosOutput = scenarios
15
15
  .map((s) => {
@@ -20,7 +20,11 @@ async function reportOnCI(scenarios) {
20
20
  `summary<<EOF\n${scenariosOutput}\nEOF`,
21
21
  `test_names=${testNames}`,
22
22
  ].join("\n");
23
- await fs_extra_1.default.appendFile("/home/runner/work/_temp/_runner_file_commands/set_output_d7d8ff8f-b245-45e2-815f-95578e554af7", envVars);
23
+ fs_extra_1.default.appendFileSync("/home/runner/work/_temp/_runner_file_commands/set_output_1e614189-e40a-4b20-8ef0-f15bc9e3828d", envVars, {
24
+ encoding: "utf8",
25
+ });
26
+ const file = fs_extra_1.default.readFileSync("/home/runner/work/_temp/_runner_file_commands/set_output_1e614189-e40a-4b20-8ef0-f15bc9e3828d");
27
+ console.log("github output content", file.toString());
24
28
  }
25
29
  return scenarios;
26
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empiricalrun/test-gen",
3
- "version": "0.16.8",
3
+ "version": "0.16.10",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"