fix(core): update

This commit is contained in:
2024-06-22 10:01:15 +02:00
parent 11cbe93b4b
commit af909047ae
3 changed files with 26 additions and 1 deletions

View File

@@ -34,4 +34,18 @@ tap.test('should open a repo', async () => {
console.log(diff);
});
tap.test('should get the diff to HEAD', async () => {
const gitRepo = await testSmartgitInstance.createRepoByOpen(packageDir);
const diff = await gitRepo.getUncommittedDiff([
'pnpm-lock.yaml',
]);
console.log(diff);
});
tap.test('should print all commit messages', async () => {
const gitRepo = await testSmartgitInstance.createRepoByOpen(packageDir);
const commitMessages = await gitRepo.getAllCommitMessages();
console.log(commitMessages);
});
await tap.start();