feat: support pnpm (#394)

* feat: support pnpm

* fix(commitlint.ts): format commitlint config output as JSON for better readability

* test(commitlint.test.ts): update expected console output for commit message consistency
This commit is contained in:
Aloha
2024-09-01 21:11:26 +08:00
committed by GitHub
parent 8702c17758
commit 89d2aa603b
3 changed files with 50 additions and 41 deletions
+1 -3
View File
@@ -181,9 +181,7 @@ describe('cli flow to generate commit message using @commitlint prompt-module',
[],
{ cwd: gitDir }
);
expect(
await commitlintGet.findByText('[object Object]')
).toBeInTheConsole();
expect(await commitlintGet.findByText('consistency')).toBeInTheConsole();
// Run 'oco' using .opencommit-commitlint
await render('echo', [`'console.log("Hello World");' > index.ts`], {