mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-23 08:45:50 +00:00
test: make lockfile path assertion cross-platform
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import { join } from 'node:path'
|
||||||
import { describe, expect, test } from 'bun:test'
|
import { describe, expect, test } from 'bun:test'
|
||||||
import {
|
import {
|
||||||
buildLockfilePayload,
|
buildLockfilePayload,
|
||||||
@@ -26,7 +27,7 @@ describe('lockfile helpers', () => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
expect(getLockfilePath(4567)).toBe(
|
expect(getLockfilePath(4567)).toBe(
|
||||||
'D:\\tmp\\claude-config\\ide\\4567.lock',
|
join('D:/tmp/claude-config', 'ide', '4567.lock'),
|
||||||
)
|
)
|
||||||
} finally {
|
} finally {
|
||||||
if (originalConfigDir === undefined) {
|
if (originalConfigDir === undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user