fix(test): normalize CLI paths on Windows
这个提交包含在:
父节点
e06f3f9877
当前提交
4cfcbb3aa2
@ -4,8 +4,9 @@ import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'nod
|
|||||||
import { tmpdir } from 'node:os'
|
import { tmpdir } from 'node:os'
|
||||||
import path from 'node:path'
|
import path from 'node:path'
|
||||||
import test from 'node:test'
|
import test from 'node:test'
|
||||||
|
import { fileURLToPath } from 'node:url'
|
||||||
|
|
||||||
const cli = new URL('./xuqm-rn.mjs', import.meta.url).pathname
|
const cli = fileURLToPath(new URL('./xuqm-rn.mjs', import.meta.url))
|
||||||
|
|
||||||
test('embed creates a complete versioned manifest from a host fixture', () => {
|
test('embed creates a complete versioned manifest from a host fixture', () => {
|
||||||
const root = mkdtempSync(path.join(tmpdir(), 'xuqm-cli-'))
|
const root = mkdtempSync(path.join(tmpdir(), 'xuqm-cli-'))
|
||||||
|
|||||||
正在加载...
在新工单中引用
屏蔽一个用户