Files
orca/tests/e2e/helpers/nested-runtime-proxy-jump-fixture.unit.test.ts
mirror 34fa2cd5ca
Skill update round trip / roundtrip (false, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, latest) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
source snapshot 2026-09-02
2026-09-02 02:03:16 +08:00

27 lines
884 B
TypeScript

import { existsSync, readFileSync, statSync } from 'node:fs'
import { afterEach, describe, expect, it } from 'vitest'
import {
createNestedRuntimeProxyJumpFixture,
type NestedRuntimeProxyJumpFixture
} from './nested-runtime-proxy-jump-fixture'
describe('nested runtime ProxyJump fixture', () => {
let fixture: NestedRuntimeProxyJumpFixture | null = null
afterEach(() => fixture?.dispose())
it('removes its exact wrapper and config directory on disposal', () => {
fixture = createNestedRuntimeProxyJumpFixture()
fixture.writeConfig('Host destination\n HostName 127.0.0.1\n')
expect(statSync(fixture.wrapperPath).mode & 0o111).not.toBe(0)
expect(readFileSync(fixture.configPath, 'utf8')).toContain('Host destination')
const directory = fixture.directory
fixture.dispose()
fixture = null
expect(existsSync(directory)).toBe(false)
})
})