mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix build failure with newest @types/mocha (#21075)
This commit is contained in:
1 parent
b1a0261575
commit
464df8f699
1 file changed
+2
-2
@@ -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