Commit Graph

46 Commits

Author SHA1 Message Date
Sebastian Poxhofer 05e1271376 test: use expect().resolves instead of awaiting inside expect (#45672)
Enables the vitest/prefer-expect-resolves oxlint rule and applies its
autofix across the spec suite.
2026-09-04 10:40:46 +00:00
Sebastian Poxhofer b106668a95 refactor(oxlint): enable typescript/no-useless-default-assignment (#44419)
- Convert `param: T | undefined = undefined` to optional `param?: T`.
- Drop dead `= false` defaults on the required cache-provider options.
- Make `GraphqlPaginatedContent.nodes/edges` optional so the `= []`
  fallbacks (load-bearing for partial GraphQL connections) are valid.
- Type the unchecked `default_branch` response field as optional so
  the `'HEAD'` fallback is retained.
- Drop `tag = undefined` from the Forgejo/Gitea/GitLab preset configs.

Part of #43845

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-07 16:38:48 +00:00
Sergei Zharinov 9d857c1f68 refactor(lint): Organize imports with biome (#40966) 2026-02-06 13:40:01 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
RahulGautamSingh 76f911041a refactor: use named exports (#39196)
* use named exports

* fix test

* add missing imnport

* fix prettier
2025-11-10 12:00:35 +00:00
Michael Kriese 8651fe1a1e refactor: fix preset api types (#37137) 2025-07-24 09:15:36 +00:00
Michael Kriese 1e6a13a4af fix(presets): log platform error messages (#37129) 2025-07-23 13:28:23 +00:00
Michael Kriese 19c115c813 test: cleanup (#34785) 2025-03-13 17:52:09 +00:00
Michael Kriese 593a92655e feat: refactor http (#34550) 2025-02-28 14:40:04 +00:00
Sergei Zharinov 9b4e515024 refactor(http): Separate getJson and getJsonUnchecked (#33651) 2025-01-17 14:18:00 +00:00
renovate[bot] 4f1fb3a163 chore(deps): update linters to v8.5.0 (#31349)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-09-16 07:10:17 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
RahulGautamSingh 4231b1ae09 feat: predictible json/json5 handling (#24612)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-11-06 10:30:11 +00:00
RahulGautamSingh 1013302e0f refactor: exactOptionalPropertyTypes (#20761)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-03-19 16:09:46 +00:00
renovate[bot] db2aef4553 chore(deps): update jest monorepo to v29.4.1 (#20130)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-02-14 16:00:49 +00:00
Sebastian Poxhofer 27aae2868e fix(presets/gitlab): directly request default branch (#20319) 2023-02-10 09:46:10 +00:00
Rhys Arkins cdec83463c fix(http): improve error logging (#18454)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-10-21 10:14:45 +00:00
Wade Ying Xing 244f40fbe8 test(gitlab): improve test case (#18393) 2022-10-19 06:41:39 +03:00
Michael Kriese ef64863f88 fix(preset/gitlab): manual parse json (#16592) 2022-07-15 10:32:12 +00:00
Oscar Dominguez e218379958 feat(presets): add support to presets ending with .json5 or .json (#15377)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-05-02 16:34:09 +02:00
Michael Kriese 982cefff2b refactor(config): strict null checks (#15291)
* refactor(config): strict null checks

* chore: fix test
2022-04-24 22:48:54 +00:00
Michael Kriese 443bef5c52 test: cleanup snapshot tests (#15082) 2022-04-12 15:09:19 +01:00
Rhys Arkins 68a4415eb4 refactor(config): rename preset packageName/pkgName to repo (#14453) 2022-02-28 17:39:44 +01:00
Michael Todorovic 7579875415 feat: support preset versioning with git tags (#11565)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
2021-11-05 13:12:47 +00:00
Sergei Zharinov 5f4b9f9a3a test: Fix test descriptions and enforce it via new linting rule (#11285) 2021-08-18 05:46:56 +00:00
Niels Basjes c077f15831 fix: Improve the default User-agent string. (#10606) 2021-06-26 07:02:35 +00:00
Michael Kriese 3c7546f7cd test: simplify nock handling (#10170) 2021-05-27 14:13:31 +02:00
Sergei Zharinov ce51f05cef feat(test): Detect test utils callers and simplify helpers (#9707) 2021-04-26 16:15:03 +02:00
Sergei Zharinov 4f237ea680 refactor(http): Use default "accept-encoding" value (#9652) 2021-04-20 15:37:57 +02:00
Armaan Tobaccowalla e5c92e4cd9 feat(config): Support presets in subdirectories (#8724) 2021-03-20 23:03:10 +00:00
Michael Kriese 74d7691bef refactor: optimize type usage (#8947) 2021-03-02 21:44:55 +01:00
Rhys Arkins 00a08225b9 refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
andrea11 264b150ba5 improve debug message (#7530)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-10-23 17:03:12 +02:00
Josh Soref 9aff7a955f chore: spelling (#7499) 2020-10-20 08:49:28 +02:00
Michael Kriese 9b4bff0051 fix(internal): fix linting (#6803) 2020-07-22 07:45:57 +02:00
Rhys Arkins 031ad87b62 refactor: move ExternalHostError 2020-06-23 11:44:52 +02:00
Rhys Arkins 52a074e041 refactor: ExternalHostError (#6563) 2020-06-22 21:28:02 +02:00
Michael Kriese 997909d6e4 feat(presets): allow sub presets for gitlab (#6238) 2020-06-09 17:33:39 +02:00
Michael Kriese 4d7c109a6b test: use nock for preset tests (#6449) 2020-06-07 13:00:49 +02:00
Sergio Zharinov 9617248f86 refactor(gitlab): Use new http wrapper for Gitlab platform (#6275) 2020-05-29 07:52:40 +02:00
Rhys Arkins 0aae466cc1 fix(cache): global cache init (#6314) 2020-05-24 10:58:58 +02:00
Rhys Arkins 73694efd82 fix(cache): run cache init (#6312) 2020-05-24 07:13:55 +02:00
Sergio Zharinov eaf8f254d3 refactor(gitlab): Refactor other tests which use gitlab platform (#6276) 2020-05-18 17:34:34 +02:00
Rhys Arkins 6104c4637a refactor: global cache (#6198) 2020-05-11 10:38:07 +02:00
Michael Kriese bf3527899c refactor(internal): refactor local presets (#6183) 2020-05-09 09:04:39 +02:00
Rhys Arkins 0c6935f8d0 refactor(presets): use subdirectories 2020-05-09 07:55:00 +02:00