MCPcopy Index your code
hub / github.com/nodejs/node / ensureCwdIsProjectRoot

Function ensureCwdIsProjectRoot

test/common/assertSnapshot.js:284–288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

282);
283
284function ensureCwdIsProjectRoot() {
285 if (process.cwd() !== root) {
286 process.chdir(root);
287 }
288}
289
290function canColorize() {
291 // Loading it lazily to avoid breaking `NODE_REGENERATE_SNAPSHOTS`.

Calls 1

chdirMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…