test(559-2): CAD 시험 설정 경로 — URL.pathname 을 fileURLToPath 로 바꿔 한글 · 띄어쓰기 폴더에서도 @ui 별칭 풀이
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
/** 페이지 코드(`@ui` 별칭을 쓰는 것)를 시험하는 vitest 설정 — 시험은 `ctrl-shortcut-sheet.test.ts`. */
|
/** 페이지 코드(`@ui` 별칭을 쓰는 것)를 시험하는 vitest 설정 — 시험은 `ctrl-shortcut-sheet.test.ts`. */
|
||||||
const root = new URL("../../..", import.meta.url).pathname.replace(/^\/(\w:)/, "$1");
|
import { fileURLToPath } from "node:url";
|
||||||
|
|
||||||
|
const root = fileURLToPath(new URL("../../..", import.meta.url)).replace(/\\/g, "/");
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
root,
|
root,
|
||||||
|
|||||||
Reference in New Issue
Block a user