Merge pull request #45 from Kaelio/luca/klo-654-improve-indents

feat(cli): add box-drawing prefixes to setup messages
This commit is contained in:
Luca Martial 2026-05-12 19:58:55 -04:00 committed by GitHub
commit fcdf5234c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 81 additions and 47 deletions

View file

@ -190,7 +190,7 @@ describe('setup project step', () => {
);
expect(prompts.text).not.toHaveBeenCalled();
expect(result.status === 'ready' ? result.project.config.project : '').toBe('ktx-project');
expect(testIo.stdout()).toContain(`KTX will create:\n ${projectDir}`);
expect(testIo.stdout()).toContain(`KTX will create:\n ${projectDir}`);
await expect(stat(join(projectDir, 'ktx.yaml'))).resolves.toBeDefined();
});
@ -209,7 +209,7 @@ describe('setup project step', () => {
expect(result.projectDir).toBe(projectDir);
expect(prompts.text).toHaveBeenCalledWith(
expect.objectContaining({
message: 'Project folder path\nPress Escape to go back.\n',
message: 'Project folder path\nPress Escape to go back.\n',
placeholder: './analytics-ktx, ~/analytics-ktx, or /Users/you/projects/analytics-ktx',
}),
);