also looking at this
fix: prevent generated dependency cache PRs
#1366
16 files
+356
-72
Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.
| @@ -28,14 +28,11 @@ const mockResolveDependencyFile = mock(() => Promise.resolve({ | ||
| 28 | 28 | |
| 29 | 29 | describe('Bun deps.yaml Update Tests', () => { |
| 30 | 30 | let testDir: string |
| 31 | let originalCwd: string | |
| 32 | 31 | let config: BuddyBotConfig |
| 33 | 32 | |
| 34 | 33 | beforeAll(async () => { |
| 35 | 34 | // Create a temporary directory for testing |
| 36 | 35 | testDir = await mkdtemp(join(tmpdir(), 'buddy-test-')) |
| 37 | originalCwd = process.cwd() | |
| 38 | process.chdir(testDir) | |
| 39 | 36 | |
| 40 | 37 | // Create a basic package.json file |
| 41 | 38 | await writeFile( |
| @@ -95,7 +92,6 @@ describe('Bun deps.yaml Update Tests', () => { | ||
| 95 | 92 | |
| 96 | 93 | afterAll(async () => { |
| 97 | 94 | // Clean up |
| 98 | process.chdir(originalCwd) | |
| 99 | 95 | await rm(testDir, { recursive: true, force: true }) |
| 100 | 96 | }) |
| 101 | 97 | |
| @@ -13,7 +13,6 @@ describe('IgnorePaths Auto-Close Functionality', () => { | ||
| 13 | 13 | |
| 14 | 14 | beforeEach(async () => { |
| 15 | 15 | testDir = await mkdtemp(join(tmpdir(), 'buddy-ignore-paths-autoclose-')) |
| 16 | process.chdir(testDir) | |
| 17 | 16 | logger = new Logger(false) // Quiet logger for tests |
| 18 | 17 | }) |
| 19 | 18 | |