Files
orca/tests/e2e/helpers/source-control-generation-app.ts
Neil 6aa0aaee6b test: isolate source-control generation repositories per scenario (#19105)
* test: isolate source control generation repositories per scenario

* test: explain scenario repository fixture scope
2026-09-06 11:25:52 -07:00

15 lines
579 B
TypeScript

import { test as base, expect } from './orca-app'
import { createSeededTestRepo } from './seeded-test-repo'
import { cleanupTestRepository } from '../global-teardown'
export { expect }
export const test = base.extend({
seededRepoPath: async ({ registerPostElectronShutdownCleanup }, provideFixture) => {
// Git indexes and remotes must not survive between generation scenarios.
const repoPath = createSeededTestRepo({ publishPath: false })
registerPostElectronShutdownCleanup(async () => cleanupTestRepository(repoPath))
await provideFixture(repoPath)
}
})