File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ type TestContext = AssertContext & {
8484 title: string;
8585 plan(count: number): void;
8686 skip: AssertContext;
87+ log(message: string): void;
8788};
8889type ContextualTestContext = TestContext & { context: any; };
8990type 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 {
9999 plan ( count : number ) : void ;
100100
101101 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 ;
102106}
103107export interface CallbackTestContext extends TestContext {
104108 /**
You can’t perform that action at this time.
0 commit comments