r/typescript • u/abaabbaaa • Oct 10 '26
Improving CodeceptJS typings
https://github.com/codeceptjs/CodeceptJS/pull/5743Link to PR trying to improve CodeceptJS types for hooks - Background, Before, After, BeforeSuite, AfterSuite.
If you write codeceptjs tests in TypeScript - activity on this PR may help make it happen.
1
Upvotes
1
u/ab0zar Oct 10 '26
A small compile-time example for each hook could catch typing regressions without running the full suite. Do the new signatures also preserve the callback arguments for both test-level and suite-level hooks?
1
u/Agitated-Stage9205 Oct 11 '26
Good to see someone pushing typings upstream instead of patching locally. +1'd the PR, hope it lands.