mirror of
https://github.com/stablyai/orca.git
synced 2026-09-23 00:02:29 +00:00
* test: isolate source control generation repositories per scenario * test: explain scenario repository fixture scope
15 lines
579 B
TypeScript
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)
|
|
}
|
|
})
|