| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR improves TypeScript type checking in the AVA test suite by introducing small wrapper functions around test.macro(...) invocations, so macro arguments are type-checked at the wrapper call sites (instead of being erased/widened when passed directly through test(...)/test.serial(...)).
Changes:
| File | Description |
|---|---|
| src/upload-sarif.test.ts | Adds testPostProcessAndUploadSarif(...) wrapper around the upload macro. |
| src/status-report.test.ts | Renames macro constant and adds testCreateInitWithConfigStatusReport(...) wrapper. |
| src/start-proxy.test.ts | Renames macros and adds wrappers for sendFailedStatusReport, getCredentials, and wrapFailure macro usage. |
| src/setup-codeql.test.ts | Adds testToolcacheInputFallback(...) wrapper around the toolcache fallback macro. |
| src/overlay/caching.test.ts | Renames macro constant and adds testDownloadOverlayBaseDatabaseFromCache(...) wrapper. |
| src/init.test.ts | Renames macro constant and adds testCheckPacksForOverlayCompatibility(...) wrapper. |
| src/init-action-post-helper.test.ts | Renames macro constant and adds testSkippedUpload(...) wrapper. |
| src/diff-informed-analysis-utils.test.ts | Renames macro constant and adds testShouldPerformDiffInformedAnalysis(...) wrapper. |
| src/config/db-config.test.ts | Adds wrappers for several macros (parsePacks, invalid pack names, pretty printing, augmentation tests). |
| src/config-utils.test.ts | Adds testCheckOverlayEnablement(...) wrapper and updates repeated test generation loop. |
| src/codeql.test.ts | Adds testInjectedConfig(...) wrapper around the injected config macro. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
When invoked via test or test.serial, detailed argument types are erased and we lose some type safety.
This PR wraps macro invocations in helper functions to ensure each of the arguments to the macros is type checked properly.
Dev/test only change.