-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
390 add config set tests #399
Conversation
…el actions to prevent unintended behavior refactor(commit.ts): streamline conditional checks for user confirmations to enhance code readability and maintainability
…ency in commit message generation process fix(commit.ts): ensure proper stopping of spinners in case of errors during commit message generation and committing process
…better maintainability and readability refactor(config.ts): improve initGlobalConfig function to accept a configPath parameter for flexibility feat(config.ts): enhance getConfig function to support separate paths for global and environment configurations test(config.test.ts): update tests to reflect changes in config handling and ensure proper functionality style(utils.ts): clean up code formatting for consistency and readability style(tsconfig.json): adjust formatting in tsconfig.json for better clarity and maintainability
@matscube could you review please |
i dont understand why the unit tests fail 🤔 is there a way to show stack trace of where it fails? |
@di-sukharev Hi, It seems that an error occurs when the cleanup function is executed for a directory that no longer exists. For example, cleanup is executed in beforeEach(async () => {
resetEnv(originalEnv);
if (globalConfigFile) await globalConfigFile.cleanup();
if (envConfigFile) await envConfigFile.cleanup();
});
afterEach(async () => {
if (globalConfigFile) await globalConfigFile.cleanup();
if (envConfigFile) await envConfigFile.cleanup();
});
describe(...
it(...
it(... It can be fixed by changing the code to execute cleanup only once, but it seems easier to fix by checking the existence of the directory in the cleanup function. I created a PR on this branch, so please check it out. |
… prevent errors if directory does not exist (#401)
thank you @matscube 🙇 |
solve #390 and refactor isCancel