Skip to content

Improvements#3

Closed
sofusalbertsen wants to merge 4 commits into
mainfrom
improvements
Closed

Improvements#3
sofusalbertsen wants to merge 4 commits into
mainfrom
improvements

Conversation

@sofusalbertsen

Copy link
Copy Markdown
Collaborator

No description provided.

… kosli modules

The fixes in summary:

src/kosli.ts — replaced execSync(template) with spawnSync('kosli', [...args]), checked proc.error and proc.status before reading proc.stdout
src/git.ts — replaced execSync with execFileSync in all three functions, splitting each command into an args array so no shell is involved
tests/git.test.ts — updated the child_process mock from execSync → execFileSync
tests/kosli.test.ts — updated the mock from execSync → spawnSync, and updated mock return values from plain strings to the { stdout, stderr, status } shape that spawnSync actually returns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant