-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: enhance test setup and improve auto commit message generation; co…
…nfigure git user details and refine hook script
- Loading branch information
erguotou
committed
Jan 3, 2025
1 parent
d47a004
commit 33e90ef
Showing
3 changed files
with
104 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,11 @@ import { init, install, runHook } from '../index.js' | |
const testDir = path.join(fileURLToPath(import.meta.url), '../..') | ||
|
||
test.beforeEach('mkdir test dir', async (t) => { | ||
execSync('git config --global user.email "[email protected]"') | ||
execSync('git config --global user.name "Test User"') | ||
execSync('git init') | ||
// await fs.mkdir(testDir, { recursive: true }) | ||
// process.chdir(testDir) | ||
await new Promise(resolve => setTimeout(resolve, 100)) | ||
console.log('Finish git init') | ||
}) | ||
test.afterEach('rm test dir', async (t) => { | ||
// process.chdir(startDir) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters