1 import { ValidTestCase, InvalidTestCase } from '../ts-eslint';
\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
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
10 declare function batchedSingleLineTests<TOptions extends Readonly<unknown[]>>(test: ValidTestCase<TOptions>): ValidTestCase<TOptions>[];
\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
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
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
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