@@ -7,19 +7,19 @@ import baseCounters from './helpers/baseCounters.js';
7
7
8
8
const cwd = resolve ( 'fixtures/tags-cli' ) ;
9
9
10
- test ( 'Include or exclude tagged exports (default )' , async ( ) => {
10
+ test ( 'Include or exclude tagged exports (package.json )' , async ( ) => {
11
11
const { issues, counters } = await main ( {
12
12
...baseArguments ,
13
13
cwd,
14
14
} ) ;
15
15
16
16
assert ( issues . exports [ 'unimported.ts' ] [ 'unimported' ] ) ;
17
17
assert ( issues . exports [ 'unimported.ts' ] [ 'unimportedUntagged' ] ) ;
18
- assert ( issues . exports [ 'tags.ts' ] [ 'UnusedUntagged' ] ) ;
19
- assert ( issues . exports [ 'tags.ts' ] [ 'UnusedCustom' ] ) ;
20
- assert ( issues . exports [ 'tags.ts' ] [ 'UnusedInternal' ] ) ;
21
- assert ( issues . exports [ 'tags.ts' ] [ 'UnusedCustomAndInternal' ] ) ;
22
- assert ( issues . exports [ 'tags.ts' ] [ 'MyCustomClass' ] ) ;
18
+ assert ( issues . exports [ 'tags.ts' ] [ 'NS. UnusedUntagged' ] ) ;
19
+ assert ( issues . exports [ 'tags.ts' ] [ 'NS. UnusedCustom' ] ) ;
20
+ assert ( issues . exports [ 'tags.ts' ] [ 'NS. UnusedInternal' ] ) ;
21
+ assert ( issues . exports [ 'tags.ts' ] [ 'NS. UnusedCustomAndInternal' ] ) ;
22
+ assert ( issues . exports [ 'tags.ts' ] [ 'NS. MyCustomClass' ] ) ;
23
23
assert ( issues . classMembers [ 'tags.ts' ] [ 'MyClass.UnusedUntagged' ] ) ;
24
24
assert ( issues . classMembers [ 'tags.ts' ] [ 'MyClass.UnusedCustom' ] ) ;
25
25
assert ( issues . classMembers [ 'tags.ts' ] [ 'MyClass.UnusedInternal' ] ) ;
@@ -28,7 +28,7 @@ test('Include or exclude tagged exports (default)', async () => {
28
28
assert ( issues . enumMembers [ 'tags.ts' ] [ 'MyEnum.UnusedCustom' ] ) ;
29
29
assert ( issues . enumMembers [ 'tags.ts' ] [ 'MyEnum.UnusedInternal' ] ) ;
30
30
assert ( issues . enumMembers [ 'tags.ts' ] [ 'MyEnum.UnusedCustomAndInternal' ] ) ;
31
- assert ( issues . types [ 'tags.ts' ] [ 'MyCustomEnum' ] ) ;
31
+ assert ( issues . types [ 'tags.ts' ] [ 'NS. MyCustomEnum' ] ) ;
32
32
33
33
assert . deepEqual ( counters , {
34
34
...baseCounters ,
@@ -41,18 +41,18 @@ test('Include or exclude tagged exports (default)', async () => {
41
41
} ) ;
42
42
} ) ;
43
43
44
- test ( 'Include or exclude tagged exports (include)' , async ( ) => {
44
+ test ( 'Include or exclude tagged exports (package.json/ include)' , async ( ) => {
45
45
const { issues, counters } = await main ( {
46
46
...baseArguments ,
47
47
cwd,
48
48
tags : [ [ 'custom' ] , [ ] ] ,
49
49
} ) ;
50
50
51
51
assert ( issues . exports [ 'unimported.ts' ] [ 'unimported' ] ) ;
52
- assert ( issues . exports [ 'tags.ts' ] [ 'UnusedCustom' ] ) ;
53
- assert ( issues . exports [ 'tags.ts' ] [ 'UnusedCustomAndInternal' ] ) ;
54
- assert ( issues . exports [ 'tags.ts' ] [ 'MyCustomClass' ] ) ;
55
- assert ( issues . types [ 'tags.ts' ] [ 'MyCustomEnum' ] ) ;
52
+ assert ( issues . exports [ 'tags.ts' ] [ 'NS. UnusedCustom' ] ) ;
53
+ assert ( issues . exports [ 'tags.ts' ] [ 'NS. UnusedCustomAndInternal' ] ) ;
54
+ assert ( issues . exports [ 'tags.ts' ] [ 'NS. MyCustomClass' ] ) ;
55
+ assert ( issues . types [ 'tags.ts' ] [ 'NS. MyCustomEnum' ] ) ;
56
56
57
57
assert . deepEqual ( counters , {
58
58
...baseCounters ,
@@ -63,16 +63,16 @@ test('Include or exclude tagged exports (include)', async () => {
63
63
} ) ;
64
64
} ) ;
65
65
66
- test ( 'Include or exclude tagged exports (exclude)' , async ( ) => {
66
+ test ( 'Include or exclude tagged exports (package.json/ exclude)' , async ( ) => {
67
67
const { issues, counters, tagHints } = await main ( {
68
68
...baseArguments ,
69
69
cwd,
70
70
tags : [ [ ] , [ 'custom' ] ] ,
71
71
} ) ;
72
72
73
73
assert ( issues . exports [ 'unimported.ts' ] [ 'unimportedUntagged' ] ) ;
74
- assert ( issues . exports [ 'tags.ts' ] [ 'UnusedUntagged' ] ) ;
75
- assert ( issues . exports [ 'tags.ts' ] [ 'UnusedInternal' ] ) ;
74
+ assert ( issues . exports [ 'tags.ts' ] [ 'NS. UnusedUntagged' ] ) ;
75
+ assert ( issues . exports [ 'tags.ts' ] [ 'NS. UnusedInternal' ] ) ;
76
76
assert ( issues . classMembers [ 'tags.ts' ] [ 'MyClass.UnusedUntagged' ] ) ;
77
77
assert ( issues . classMembers [ 'tags.ts' ] [ 'MyClass.UnusedInternal' ] ) ;
78
78
assert ( issues . enumMembers [ 'tags.ts' ] [ 'MyEnum.UnusedUntagged' ] ) ;
0 commit comments