test: account for native Windows skill semantics

This commit is contained in:
Jinwoo-H
2026-08-11 08:21:32 -04:00
parent ff6674e1f5
commit d364750ad2
2 changed files with 2 additions and 3 deletions
@@ -63,7 +63,6 @@ describe('skill install service', () => {
expect(result.status).toBe('installed')
expect(result.placements).toHaveLength(2)
expect((await lstat(claude)).isSymbolicLink()).toBe(process.platform !== 'win32')
expect(await realpath(claude)).toBe(await realpath(canonical))
})
@@ -32,7 +32,7 @@ afterEach(async () => {
})
describe('skill package creation and extraction', () => {
it('round trips a validated skill and preserves executable identity', async () => {
it('round trips a validated skill and preserves observed executable identity', async () => {
const root = await temporaryDirectory()
const sourceDirectory = await createSkill(root)
const archivePath = join(root, 'package.tar.gz')
@@ -54,7 +54,7 @@ describe('skill package creation and extraction', () => {
expect(extracted.manifest).toEqual(created.manifest)
expect(extracted.manifest.files.map((file) => [file.path, file.executable])).toEqual([
['SKILL.md', false],
['scripts/run.sh', true]
['scripts/run.sh', process.platform !== 'win32']
])
expect(await readFile(join(extracted.skillDirectory, 'scripts', 'run.sh'), 'utf8')).toContain(
'echo test'