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