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