This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
|
||||
import { shouldIgnoreCountFile } from "../dist/file-filter.js";
|
||||
|
||||
test("shouldIgnoreCountFile skips generic project metadata files", () => {
|
||||
assert.equal(shouldIgnoreCountFile("/tmp/package.json"), true);
|
||||
assert.equal(shouldIgnoreCountFile("/tmp/tsconfig.json"), true);
|
||||
assert.equal(shouldIgnoreCountFile("/tmp/docker-compose.yml"), true);
|
||||
assert.equal(shouldIgnoreCountFile("/tmp/src/index.ts"), false);
|
||||
assert.equal(shouldIgnoreCountFile("/tmp/README.md"), false);
|
||||
});
|
||||
Reference in New Issue
Block a user