mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
add @mocha package declaration for mocha.loadFilesAsync() (#42684)
* add declaration for Mocha.loadFilesAsync() * add test for mocha.loadFilesAsync()
This commit is contained in:
parent
02f205529e
commit
3dce8b667f
7
types/mocha/index.d.ts
vendored
7
types/mocha/index.d.ts
vendored
@ -231,6 +231,13 @@ declare class Mocha {
|
||||
*/
|
||||
run(fn?: (failures: number) => void): Mocha.Runner;
|
||||
|
||||
/**
|
||||
* Loads ESM (and CJS) test files asynchronously.
|
||||
*
|
||||
* @see https://mochajs.org/api/mocha#loadFilesAsync
|
||||
*/
|
||||
loadFilesAsync(): Promise<void>;
|
||||
|
||||
/**
|
||||
* Load registered files.
|
||||
*
|
||||
|
||||
@ -833,6 +833,10 @@ function test_browser_mocha_setup_all_options() {
|
||||
});
|
||||
}
|
||||
|
||||
function testLoadFilesAsync() {
|
||||
mocha.loadFilesAsync();
|
||||
}
|
||||
|
||||
function test_constructor_slow_option() {
|
||||
const m: Mocha = new LocalMocha({ slow: 25 });
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user