Skip to content

assertPathNotExists

Assert that a filesystem path does not exist.

import { assertPathNotExists } from "@kensio/smartass";
const filePath = "missing.txt";
assertPathNotExists(filePath);
// This validates the missing path at runtime without changing the path type.

Source file: src/assert/path-not-exists/path-not-exists.assert.ts