diff --git a/packages/lint/src/linearScans.test.ts b/packages/lint/src/linearScans.test.ts
new file mode 100644
index 0000000000..f356f77d07
--- /dev/null
+++ b/packages/lint/src/linearScans.test.ts
@@ -0,0 +1,156 @@
+import { isDeepStrictEqual } from "node:util";
+import { describe, expect, it } from "vitest";
+import {
+ blockComments,
+ emptyStyleBlocks,
+ hasInvalidScriptClose,
+ hasScriptWithSrc,
+ htmlTagTracker,
+ protectedBlockRanges,
+ replaceBlockComments,
+ styleTagTokens,
+} from "./linearScans";
+
+const PATTERNS = {
+ blockComment: /\/\*[\s\S]*?\*\//g,
+ invalidScriptClose: /",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "