Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/testing/src/docker/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export interface Container {
/**
* Retrieve the response of a command as a string.
*/
execAndRead<T extends Terminal.Factory>(command: string | string[]): Promise<string>;
execAndRead(command: string | string[]): Promise<string>;

/**
* Retrieve the response of a command using a terminal.
Expand Down
4 changes: 2 additions & 2 deletions packages/testing/src/mocha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ export function generalSetup(mocha: Mocha) {

mocha.suite.beforeEach(function (done) {
this.timeout(TEST_HOOK_TIMEOUT);
return (this.currentTest as HookableTest)[beforeOneHook]?.call(this, done);
return ((this.currentTest as HookableTest)[beforeOneHook] as any)?.call(this, done);
});

mocha.suite.afterEach(function (done) {
this.timeout(TEST_HOOK_TIMEOUT);
for (const hook of LoggerHooks.afterEach) {
hook(mocha);
}
return (this.currentTest as HookableTest)[afterOneHook]?.call(this, done);
return ((this.currentTest as HookableTest)[afterOneHook] as any)?.call(this, done);
});

TextDiff.generator = Base.generateDiff.bind(Base);
Expand Down
2 changes: 1 addition & 1 deletion packages/testing/src/util/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function* asyncLinesOf<C, T extends AsyncIterable<C>>(input: T, fil

for await (let chunk of input) {
if (filter) {
chunk = filter(chunk) as C;
chunk = filter(chunk) as Awaited<C>;
}

if (chunk === undefined || chunk === null) {
Expand Down
Loading