瀏覽代碼

fix(gitignore): anchor "coverage/" rule to repo root (#127)

The unanchored "coverage/" rule (intended to ignore the test-output
directory at repo root) silently matches any "coverage/" directory in
the tree. This bit a real PR: src/coverage/ was added but never made
it into the commit because git add silently dropped the files. The
PR shipped with the test importing a module that didn't exist.

Anchor the rule to "/coverage/" so it only ignores root-level test
output, allowing src/coverage/, packages/*/coverage/, etc. to be
committed normally.
andreinknv 1 月之前
父節點
當前提交
153fd1e974
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .gitignore

+ 1 - 1
.gitignore

@@ -18,7 +18,7 @@ dist/
 Thumbs.db
 
 # Test coverage
-coverage/
+/coverage/
 .nyc_output/
 
 # Environment