.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / @typescript-eslint / experimental-utils / dist / eslint-utils / batchedSingleLineTests.d.ts
1 import { ValidTestCase, InvalidTestCase } from '../ts-eslint';
2 /**
3  * Converts a batch of single line tests into a number of separate test cases.
4  * This makes it easier to write tests which use the same options.
5  *
6  * Why wouldn't you just leave them as one test?
7  * Because it makes the test error messages harder to decipher.
8  * This way each line will fail separately, instead of them all failing together.
9  */
10 declare function batchedSingleLineTests<TOptions extends Readonly<unknown[]>>(test: ValidTestCase<TOptions>): ValidTestCase<TOptions>[];
11 /**
12  * Converts a batch of single line tests into a number of separate test cases.
13  * This makes it easier to write tests which use the same options.
14  *
15  * Why wouldn't you just leave them as one test?
16  * Because it makes the test error messages harder to decipher.
17  * This way each line will fail separately, instead of them all failing together.
18  *
19  * Make sure you have your line numbers correct for error reporting, as it will match
20  * the line numbers up with the split tests!
21  */
22 declare function batchedSingleLineTests<TMessageIds extends string, TOptions extends Readonly<unknown[]>>(test: InvalidTestCase<TMessageIds, TOptions>): InvalidTestCase<TMessageIds, TOptions>[];
23 export { batchedSingleLineTests };
24 //# sourceMappingURL=batchedSingleLineTests.d.ts.map