No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
c47743b
... +0 ...
651ce97
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
41 | 41 | /** @type {Handle} */ |
|
42 | 42 | context.handle = zwitch('type', { |
|
43 | 43 | invalid, |
|
44 | - | // @ts-expect-error: hush. |
|
45 | 44 | unknown, |
|
46 | - | // @ts-expect-error: hush. |
|
47 | 45 | handlers: context.handlers |
|
48 | 46 | }) |
|
49 | 47 |
78 | 76 | /** |
|
79 | 77 | * @type {Handle} |
|
80 | 78 | * @param {unknown} value |
|
79 | + | * @returns {never} |
|
81 | 80 | */ |
|
82 | 81 | function invalid(value) { |
|
83 | 82 | throw new Error('Cannot handle value `' + value + '`, expected node') |
|
84 | 83 | } |
|
85 | 84 | ||
86 | 85 | /** |
|
87 | 86 | * @type {Handle} |
|
88 | - | * @param {Node} node |
|
87 | + | * @param {unknown} node |
|
88 | + | * @returns {never} |
|
89 | 89 | */ |
|
90 | 90 | function unknown(node) { |
|
91 | + | // @ts-expect-error: fine. |
|
91 | 92 | throw new Error('Cannot handle unknown node `' + node.type + '`') |
|
92 | 93 | } |
|
93 | 94 |
651ce97
c47743b