Commit 58c782d
committed
refactor(tests): remove last @ts-ignore directives from test files
Zero \`@ts-ignore\` / \`@ts-expect-error\` suppressions remain under
src/**/*.test.*.
- getResizedImageUrl.test.ts: typed the mocked URL object as
\`as unknown as URL\` at the return value instead of silencing the
search-params shape mismatch inline.
- renderText.test.tsx:
- Dropped \`@ts-ignore\` on the \`simple-markdown\` import
(\`ASTNode\`/\`SingleASTNode\` are declared in the bundled
\`simple-markdown.d.ts\` — the ignore was stale).
- Replaced \`<Text>{node}</Text>\` with \`<Text>{JSON.stringify(node)}</Text>\`
so the \`ASTNode\` value is a valid React child; the test only
asserts \`getByText\`, the content shape is incidental.1 parent 1e54631 commit 58c782d
2 files changed
Lines changed: 12 additions & 12 deletions
File tree
- package/src
- components/Message/MessageItemView/utils
- utils/__tests__
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | | - | |
30 | | - | |
| 28 | + | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
0 commit comments