Commit 43f82ae
test(ts-plugin): split diagnostics and file-operation e2e tests (#381)
* test(ts-plugin): split diagnostics and file-operation e2e tests into per-behavior cases
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* test(ts-plugin): add hover e2e test for the styles binding type
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* test(ts-plugin): flatten describe groups in semantic-diagnostics e2e test
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* test(ts-plugin): consolidate semantic-diagnostics e2e test to a single representative case
Exhaustive coverage of core checker diagnostic kinds is owned by
packages/core/src/checker.test.ts. The e2e test now keeps only one
representative case to verify that a CSS-side diagnostic surfaces in
tsserver via ts-plugin.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* test(ts-plugin): rename the consolidated semantic-diagnostics e2e test to focus on the behavior
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* test(ts-plugin): consolidate syntactic-diagnostics e2e test to a single representative case
Exhaustive coverage of parser-side diagnostic kinds is owned by the
parser tests under packages/core/src/parser/. The e2e test now keeps
only one representative case to verify that a CSS-side syntactic
diagnostic surfaces in tsserver via ts-plugin.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* test(ts-plugin): drop redundant comments from diagnostics e2e tests
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* test(ts-plugin): consolidate file-operation e2e tests around importer diagnostic updates
Restore the original 1-test-per-file-operation structure and rename
each test to focus on the behavior being verified: that adding,
modifying, or removing a CSS module updates the importer's
diagnostics.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Revert "test(ts-plugin): add hover e2e test for the styles binding type"
This reverts commit c3f8e95.
* test(ts-plugin): verify the styles binding type via assignment in semantic-diagnostics e2e
Replaces the reverted hover-based check with a structural type
assignment (`type Expected = { a_1: string }; const _t: Expected = styles;`)
inside semantic-diagnostics.test.ts. This avoids hard-coding the
TypeScript compiler's hover wording while still exercising the
.d.ts-generated type on the styles binding.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4563420 commit 43f82ae
3 files changed
Lines changed: 158 additions & 304 deletions
File tree
- packages/ts-plugin/e2e-test
- feature
Lines changed: 61 additions & 89 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
48 | 24 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
60 | 31 | | |
61 | | - | |
62 | | - | |
| 32 | + | |
| 33 | + | |
63 | 34 | | |
64 | | - | |
65 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
66 | 50 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
83 | 62 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
96 | 68 | | |
97 | | - | |
98 | | - | |
| 69 | + | |
| 70 | + | |
99 | 71 | | |
Lines changed: 23 additions & 71 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
60 | 19 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
73 | 25 | | |
74 | | - | |
75 | | - | |
| 26 | + | |
| 27 | + | |
76 | 28 | | |
0 commit comments