Skip to content

Commit aa50162

Browse files
🤖 Merge PR DefinitelyTyped#64023 update(find-test-names): update to v1.24 by @peterblazejewicz
- new `requiredTags` property on results bahmutov/find-test-names#52 https://github.com/bahmutov/find-test-names/releases/tag/v1.24.0 Thanks!
1 parent 522b1be commit aa50162

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎types/find-test-names/find-test-names-tests.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ const source = `
4444
findEffectiveTestTags(source); // $ExpectType Record<string, Tags>
4545

4646
findEffectiveTestTagsIn('specFilename'); // $ExpectType Record<string, Tags>
47+
48+
structure[0].requiredTags; // $ExpectType string[] | undefined

‎types/find-test-names/index.d.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for find-test-names 1.21
1+
// Type definitions for find-test-names 1.24
22
// Project: https://github.com/bahmutov/find-test-names
33
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -20,6 +20,7 @@ export interface ResultsWithStructure extends Results {
2020

2121
export interface Test {
2222
name: string;
23+
requiredTags: string[] | undefined;
2324
type: 'test';
2425
tags: Tags;
2526
pending: boolean;
@@ -32,6 +33,7 @@ export interface TestInfo {
3233
}
3334
export interface Suite {
3435
name: string;
36+
requiredTags?: string[] | undefined;
3537
tags?: Tags | undefined;
3638
pending: boolean;
3739
type: 'suite';

0 commit comments

Comments
 (0)