@travetto/test 5.0.7 → 5.0.9

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.7",
3
+ "version": "5.0.9",
4
4
  "description": "Declarative test framework",
5
5
  "keywords": [
6
6
  "unit-testing",
@@ -27,15 +27,15 @@
27
27
  "directory": "module/test"
28
28
  },
29
29
  "dependencies": {
30
- "@travetto/registry": "^5.0.7",
31
- "@travetto/runtime": "^5.0.7",
32
- "@travetto/terminal": "^5.0.7",
33
- "@travetto/worker": "^5.0.7",
30
+ "@travetto/registry": "^5.0.9",
31
+ "@travetto/runtime": "^5.0.9",
32
+ "@travetto/terminal": "^5.0.9",
33
+ "@travetto/worker": "^5.0.9",
34
34
  "yaml": "^2.5.1"
35
35
  },
36
36
  "peerDependencies": {
37
- "@travetto/cli": "^5.0.7",
38
- "@travetto/transformer": "^5.0.6"
37
+ "@travetto/cli": "^5.0.9",
38
+ "@travetto/transformer": "^5.0.7"
39
39
  },
40
40
  "peerDependenciesMeta": {
41
41
  "@travetto/transformer": {
@@ -27,9 +27,6 @@ export class Runner {
27
27
  */
28
28
  async runFiles(globs?: string[]): Promise<boolean> {
29
29
  const consumer = await RunnableTestConsumer.get(this.#state.consumer ?? this.#state.format);
30
-
31
- console.debug('Running', { globs });
32
-
33
30
  const tests = await RunnerUtil.getTestDigest(globs, this.#state.tags);
34
31
  const testRuns = RunnerUtil.getTestRuns(tests)
35
32
  .sort((a, b) => a.runId!.localeCompare(b.runId!));
@@ -2,6 +2,7 @@ import { spawn } from 'node:child_process';
2
2
  import { createReadStream } from 'node:fs';
3
3
  import fs from 'node:fs/promises';
4
4
  import readline from 'node:readline/promises';
5
+ import path from 'node:path';
5
6
 
6
7
  import { Env, ExecUtil, ShutdownManager, Util, RuntimeIndex, Runtime } from '@travetto/runtime';
7
8
  import { TestConfig, TestRun } from '../model/test';
@@ -48,7 +49,7 @@ export class RunnerUtil {
48
49
  if (globs?.length) {
49
50
  const allFiles = new Map(all.map(x => [x.sourceFile, x]));
50
51
  for await (const item of fs.glob(globs)) {
51
- const src = Runtime.workspaceRelative(item);
52
+ const src = Runtime.workspaceRelative(path.resolve(item));
52
53
  const match = allFiles.get(src);
53
54
  if (match && await this.isTestFile(match.sourceFile)) {
54
55
  yield match.import;
@@ -14,7 +14,7 @@ export class TestDigestCommand {
14
14
  Env.DEBUG.set(false);
15
15
  }
16
16
 
17
- async main(globs: string[] = ['**/*.ts']) {
17
+ async main(globs: string[] = ['**/*']) {
18
18
  // Load all tests
19
19
  for await (const imp of await RunnerUtil.getTestImports(globs)) {
20
20
  try {