mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 04:43:37 -05:00
Fix build failure with newest @types/mocha (#21075)
This commit is contained in:
@@ -55,7 +55,7 @@ namespace Harness.Parallel.Worker {
|
||||
retries() { return this; },
|
||||
slow() { return this; },
|
||||
timeout(n) {
|
||||
timeout = n;
|
||||
timeout = n as number;
|
||||
return this;
|
||||
},
|
||||
};
|
||||
@@ -127,7 +127,7 @@ namespace Harness.Parallel.Worker {
|
||||
const fakeContext: Mocha.ITestCallbackContext = {
|
||||
skip() { return this; },
|
||||
timeout(n) {
|
||||
timeout = n;
|
||||
timeout = n as number;
|
||||
return this;
|
||||
},
|
||||
retries() { return this; },
|
||||
|
||||
Reference in New Issue
Block a user