File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ type TestContext = AssertContext & {
84
84
title: string;
85
85
plan(count: number): void;
86
86
skip: AssertContext;
87
+ log(message: string): void;
87
88
};
88
89
type ContextualTestContext = TestContext & { context: any; };
89
90
type ContextualCallbackTestContext = TestContext & { context: any; end(): void; };
Original file line number Diff line number Diff line change @@ -99,6 +99,10 @@ export interface TestContext extends AssertContext {
99
99
plan ( count : number ) : void ;
100
100
101
101
skip : AssertContext ;
102
+ /**
103
+ * Print a log message contextually alongside the test result instead of immediately printing it to stdout like console.log.
104
+ */
105
+ log ( message : string ) : void ;
102
106
}
103
107
export interface CallbackTestContext extends TestContext {
104
108
/**
You can’t perform that action at this time.
0 commit comments