mirror of
https://github.com/morluto/rea.git
synced 2026-11-21 06:04:03 +00:00
test: prove retained facts and remove preinstall source greps
This commit is contained in:
1 parent
6bb2ad90ac
commit
e1e24543e4
4 files changed
+46
-30
No files matched your search
@@ -1,4 +1,3 @@
|
||||
import { readFile } from "node:fs/promises";
|
||||
import { expect, it } from "vitest";
|
||||
import {
|
||||
isComparisonOrCountFile,
|
||||
@@ -229,17 +228,6 @@ it("exempts a default whose operand starts on an earlier line", () => {
|
||||
).toBe(1);
|
||||
});
|
||||
|
||||
it("loads without installed dependencies, as CI runs it before npm ci", async () => {
|
||||
const source = await readFile(
|
||||
new URL(
|
||||
"../../scripts/verify/optional-fact-default-guard.mjs",
|
||||
import.meta.url,
|
||||
),
|
||||
"utf8",
|
||||
);
|
||||
expect(source).not.toMatch(/\bfrom\s+["'](?!node:|\.)/u);
|
||||
});
|
||||
|
||||
it("selects comparison, coverage and count files only", () => {
|
||||
expect(isComparisonOrCountFile("src/domain/artifactComparison.ts")).toBe(
|
||||
true,
|
||||
|
||||
Reference in new issue
Block a user