mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-09 04:02:35 +00:00
test(desktop): load pnpm fixture by file URL
This commit is contained in:
@@ -2,6 +2,7 @@ import { createHash } from 'node:crypto'
|
||||
import { existsSync, mkdtempSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, statSync, writeFileSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { dirname, join, relative, sep } from 'node:path'
|
||||
import { pathToFileURL } from 'node:url'
|
||||
import { afterEach, describe, expect, it } from 'vitest'
|
||||
import { resolveDesktopPaths } from '../src/paths.ts'
|
||||
import {
|
||||
@@ -130,7 +131,7 @@ import { existsSync, writeFileSync } from 'node:fs'
|
||||
import { setTimeout as sleep } from 'node:timers/promises'
|
||||
writeFileSync(${JSON.stringify(ready)}, String(process.pid))
|
||||
while (!existsSync(${JSON.stringify(release)})) await sleep(10)
|
||||
await import(${JSON.stringify(delegate)})
|
||||
await import(${JSON.stringify(pathToFileURL(delegate).href)})
|
||||
`)
|
||||
return path
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user