🧪 Testing: Fill in unit test coverage for initializeWithOptions.ts #873
Labels
area: testing
Improving how the repository's tests are run and/or code is tested
status: accepting prs
Please, send a pull request to resolve this!
Bug Report Checklist
main
branch of the repository.Overview
Splitting out of #869: the
initializeWithOptions
function is not currently unit tested. I'd love to see some unit tests added for it!https://app.codecov.io/gh/JoshuaKGoldberg/create-typescript-app/blob/094b253411168038a2c7585e5172f8b773c18ea2/src%2Finitialize%2FinitializeWithOptions.ts
Additional Info
It'll be a little verbose to set up, but a unit test file should be able to Vitest mock out all the functions being called (
writeStructure
,writeReadme
, etc.). And it'll likely have to mock outwithSpinners
, too, to directly call each of the functions provided in order.The text was updated successfully, but these errors were encountered: