Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ChatLab/ChatLab
/ data-dir-switch.test.ts
File
data-dir-switch.test.ts
packages/node-runtime/src/data-dir-switch.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
assert from
'node:assert/strict'
2
import
fs from
'node:fs'
3
import
os from
'node:os'
4
import
path from
'node:path'
Callers
nothing calls this directly
Calls
10
createPendingDataDirMigration
Function · 0.90
runPendingDataDirMigration
Function · 0.90
isExistingUserDataDir
Function · 0.90
createNodeDataDirSwitch
Function · 0.90
getPendingNodeDataDirMigration
Function · 0.90
applyPendingNodeDataDirMigration
Function · 0.90
applyPendingNodeDataDirMigrationIfNeeded
Function · 0.90
ensureAllDirs
Method · 0.80
makeTempDir
Function · 0.70
writeFile
Function · 0.70
Tested by
no test coverage detected