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