@travetto/test 5.0.11 → 5.0.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/test",
3
- "version": "5.0.11",
3
+ "version": "5.0.12",
4
4
  "description": "Declarative test framework",
5
5
  "keywords": [
6
6
  "unit-testing",
@@ -29,12 +29,12 @@
29
29
  "dependencies": {
30
30
  "@travetto/registry": "^5.0.11",
31
31
  "@travetto/runtime": "^5.0.11",
32
- "@travetto/terminal": "^5.0.11",
33
- "@travetto/worker": "^5.0.11",
32
+ "@travetto/terminal": "^5.0.12",
33
+ "@travetto/worker": "^5.0.12",
34
34
  "yaml": "^2.6.0"
35
35
  },
36
36
  "peerDependencies": {
37
- "@travetto/cli": "^5.0.11",
37
+ "@travetto/cli": "^5.0.13",
38
38
  "@travetto/transformer": "^5.0.9"
39
39
  },
40
40
  "peerDependenciesMeta": {
@@ -1,4 +1,4 @@
1
- import { ChildCommChannel } from '@travetto/worker';
1
+ import { IpcChannel } from '@travetto/worker';
2
2
 
3
3
  import { TestEvent } from '../../model/event';
4
4
  import { TestConsumer } from '../types';
@@ -9,8 +9,7 @@ import { Consumable } from '../registry';
9
9
  * Triggers each event as an IPC command to a parent process
10
10
  */
11
11
  @Consumable('exec')
12
- export class ExecutionEmitter extends ChildCommChannel<TestEvent> implements TestConsumer {
13
-
12
+ export class ExecutionEmitter extends IpcChannel<TestEvent> implements TestConsumer {
14
13
  onEvent(event: TestEvent): void {
15
14
  this.send(event.type, JSON.parse(SerializeUtil.serializeToJSON(event)));
16
15
  }
@@ -1,7 +1,7 @@
1
1
  import { createWriteStream } from 'node:fs';
2
2
 
3
3
  import { ConsoleManager, Env, Util, Runtime } from '@travetto/runtime';
4
- import { ChildCommChannel } from '@travetto/worker';
4
+ import { IpcChannel } from '@travetto/worker';
5
5
 
6
6
  import { SerializeUtil } from '../consumer/serialize';
7
7
  import { RunnerUtil } from '../execute/util';
@@ -13,7 +13,7 @@ import { TestRun } from '../model/test';
13
13
  * Child Worker for the Test Runner. Receives events as commands
14
14
  * to run specific tests
15
15
  */
16
- export class TestChildWorker extends ChildCommChannel<TestRun> {
16
+ export class TestChildWorker extends IpcChannel<TestRun> {
17
17
 
18
18
  #done = Util.resolvablePromise();
19
19
 
@@ -1,7 +1,7 @@
1
1
  import { fork } from 'node:child_process';
2
2
 
3
3
  import { Env, RuntimeIndex } from '@travetto/runtime';
4
- import { ParentCommChannel } from '@travetto/worker';
4
+ import { IpcChannel } from '@travetto/worker';
5
5
 
6
6
  import { Events, TestLogEvent } from './types';
7
7
  import { TestConsumer } from '../consumer/types';
@@ -23,7 +23,7 @@ export async function buildStandardTestManager(consumer: TestConsumer, run: Test
23
23
  const { module } = RuntimeIndex.getFromImport(run.import)!;
24
24
  const suiteMod = RuntimeIndex.getModule(module)!;
25
25
 
26
- const channel = new ParentCommChannel<TestEvent & { error?: Error }>(
26
+ const channel = new IpcChannel<TestEvent & { error?: Error }>(
27
27
  fork(
28
28
  RuntimeIndex.resolveFileImport('@travetto/cli/support/entry.trv'), ['test:child'],
29
29
  {