textrun-extension 0.2.1 → 0.3.0

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/README.md CHANGED
@@ -26,11 +26,5 @@ more files before running Text-Runner, you can use the
26
26
  To use these actions, add this package as a development dependency by running
27
27
 
28
28
  <pre type="npm/install">
29
- $ npm i -D textrun-extension
30
- </pre>
31
-
32
- or
33
-
34
- <pre type="npm/install">
35
- $ yarn i -D textrun-extension
29
+ npm i -D textrun-extension
36
30
  </pre>
@@ -1,4 +1,4 @@
1
- import * as textRunner from "text-runner-core";
1
+ import * as textRunner from "text-runner-engine";
2
2
  /** runs Text-Runner in the workspace */
3
3
  export declare function runTextrunner(action: textRunner.actions.Args): Promise<void>;
4
4
  //# sourceMappingURL=run-textrunner.d.ts.map
@@ -1,17 +1,17 @@
1
- import * as textRunner from "text-runner-core";
1
+ import * as textRunner from "text-runner-engine";
2
2
  import * as util from "util";
3
3
  /** runs Text-Runner in the workspace */
4
4
  export async function runTextrunner(action) {
5
5
  action.name("Running Text-Runner in workspace");
6
6
  const command = new textRunner.commands.Run({
7
- sourceDir: action.configuration.workspace.joinStr(action.region[0].attributes["dir"] || "."),
8
- workspace: ".",
9
7
  emptyWorkspace: false,
8
+ sourceDir: action.configuration.workspace.joinStr(action.region[0].attributes["dir"] || "."),
9
+ workspace: "."
10
10
  });
11
11
  const activityCollector = new textRunner.ActivityCollector(command);
12
12
  await command.execute();
13
13
  for (const result of activityCollector.results()) {
14
- action.log(util.inspect(result));
14
+ action.log(util.inspect(result, false, Infinity));
15
15
  if (result.error) {
16
16
  throw result.error;
17
17
  }
@@ -1,4 +1,4 @@
1
- import * as textRunner from "text-runner-core";
1
+ import * as textRunner from "text-runner-engine";
2
2
  /** runs the given content in Text-Runner */
3
3
  export declare function runnableRegion(action: textRunner.actions.Args): Promise<void>;
4
4
  //# sourceMappingURL=runnable-region.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { promises as fs } from "fs";
2
- import * as textRunner from "text-runner-core";
2
+ import * as textRunner from "text-runner-engine";
3
3
  import * as util from "util";
4
4
  /** runs the given content in Text-Runner */
5
5
  export async function runnableRegion(action) {
@@ -10,14 +10,14 @@ export async function runnableRegion(action) {
10
10
  }
11
11
  await fs.writeFile(action.configuration.workspace.joinStr("runnable-region.md"), content);
12
12
  const command = new textRunner.commands.Run({
13
- sourceDir: action.configuration.workspace.platformified(),
14
- workspace: ".",
15
13
  emptyWorkspace: false,
14
+ sourceDir: action.configuration.workspace.platformified(),
15
+ workspace: "."
16
16
  });
17
17
  const activityCollector = new textRunner.ActivityCollector(command);
18
18
  await command.execute();
19
19
  for (const result of activityCollector.results()) {
20
- action.log(util.inspect(result));
20
+ action.log(util.inspect(result, false, Infinity));
21
21
  if (result.error) {
22
22
  throw result.error;
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "textrun-extension",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Text-Runner actions for verifying the documentation of Text-Runner extensions",
5
5
  "license": "ISC",
6
6
  "type": "module",
@@ -13,19 +13,19 @@
13
13
  "build": "tsc -p tsconfig-build.json",
14
14
  "clean": "rm -rf dist",
15
15
  "cuke": "cucumber-js --format=progress",
16
- "doc": "text-run static --format=summary && text-run dynamic --format=progress",
17
- "fix": "eslint --fix --ignore-pattern=dist/ . && prettier --write .",
18
- "lint": "prettier -l . && eslint --ignore-pattern=dist/ . && depcheck",
19
- "unit": "env NODE_NO_WARNINGS=1 mocha --reporter=dot 'src/**/*.test.ts'"
16
+ "doc": "text-runner",
17
+ "fix": "eslint --fix --ignore-pattern=dist/ . && dprint fmt && sort-package-json --quiet",
18
+ "lint": "dprint check && sort-package-json --check --quiet && eslint --ignore-pattern=dist/ . && depcheck",
19
+ "unit": "node --test --import tsx 'src/**/*.test.ts'"
20
20
  },
21
21
  "dependencies": {
22
- "text-runner-core": "6.0.1"
22
+ "text-runner-engine": "7.1.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "shared-cucumber-steps": "*",
26
- "text-runner": "6.0.1",
27
- "textrun-action": "0.2.1",
26
+ "text-runner": "7.1.0",
27
+ "textrun-action": "0.3.0",
28
28
  "tsx": "4.19.3"
29
29
  },
30
- "gitHead": "e479ff08fba71c7b2f6d1e3e14001b7818a38e12"
30
+ "gitHead": "bdf119a8e549f679af14f88952f7353648b50759"
31
31
  }