# assertFileNotIncludes Source: https://smartassertions.dev/assertions/assertFileNotIncludes/ Index of every page: https://smartassertions.dev/llms.txt Assert that a file does not include a given substring. ## Usage ```ts import { assertFileNotIncludes } from "@kensio/smartass"; const filePath = "foobar.txt"; assertFileNotIncludes(filePath, "find me"); // This validates file contents at runtime without changing the path type. ``` ## Source Source file: [`src/assert/file-not-includes/file-not-includes.assert.ts`](https://github.com/KensioSoftware/smartass/blob/main/src/assert/file-not-includes/file-not-includes.assert.ts)