@travetto/test 6.0.0 → 6.0.1
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 +1 -1
- package/src/execute/console.ts +2 -3
- package/src/model/test.ts +1 -1
package/package.json
CHANGED
package/src/execute/console.ts
CHANGED
|
@@ -18,10 +18,9 @@ export class ConsoleCapture implements ConsoleListener {
|
|
|
18
18
|
return this;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
log({
|
|
21
|
+
log({ args, scope: _, ...rest }: ConsoleEvent): void {
|
|
22
22
|
this.out.push({
|
|
23
|
-
|
|
24
|
-
level,
|
|
23
|
+
...rest,
|
|
25
24
|
message: args
|
|
26
25
|
.map((x => typeof x === 'string' ? x : util.inspect(x, false, 5)))
|
|
27
26
|
.join(' ')
|
package/src/model/test.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { Class, ConsoleEvent, TimeSpan } from '@travetto/runtime';
|
|
|
3
3
|
import { Skip, TestCore } from './common.ts';
|
|
4
4
|
|
|
5
5
|
export type ThrowableError = string | RegExp | Class<Error> | ((e: Error | string) => boolean | void | undefined);
|
|
6
|
-
export type TestLog =
|
|
6
|
+
export type TestLog = Omit<ConsoleEvent, 'args' | 'scope'> & { message: string };
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Specific configuration for a test
|