Commit b2383d5
authored
chore(tests): Add node 19.x to the test matrix to support the current node version (#551)
* Add node 19.x to the test matrix to support the current node version
* fix: test support for node 19
This commit fixes the test support specifically for get-configuration.test.js, because node 19 and up use different Error messages for JSON parsing errors.
This commit adds a special case for node 19 and up, changing the expected error message.
Signed-off-by: Raphael Höser <[email protected]>
* Chore: refactor tests for node 19 support
Instead of making an explicit version check, just test for the important part of the error message.
* Fix: prettier issues
Signed-off-by: Raphael Höser <[email protected]>
* Fix: unittest error string for failed audits inputs.
Signed-off-by: Raphael Höser <[email protected]>
---------
Signed-off-by: Raphael Höser <[email protected]>1 parent 88e9ec5 commit b2383d5
File tree
4 files changed
+5
-9
lines changed- .github/workflows
- src/lib/get-configuration
4 files changed
+5
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | | - | |
| 171 | + | |
174 | 172 | | |
175 | 173 | | |
176 | 174 | | |
| |||
182 | 180 | | |
183 | 181 | | |
184 | 182 | | |
185 | | - | |
186 | | - | |
187 | | - | |
| 183 | + | |
188 | 184 | | |
189 | 185 | | |
190 | 186 | | |
| |||
0 commit comments