MCPcopy Create free account
hub / github.com/aagentah/nw_wrld / assertFileExists

Function assertFileExists

test/packagingConfig.test.js:10–12  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

8const readText = (p) => fs.readFileSync(p, "utf8");
9
10const assertFileExists = (p) => {
11 assert.equal(fs.existsSync(p), true, `Expected file to exist: ${p}`);
12};
13
14test("packaging config references build resources that exist", () => {
15 const pkgPath = path.join(repoRoot, "package.json");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected