diff options
author | Adam Johnson <me@adamj.eu> | 2020-11-11 01:41:25 +0000 |
---|---|---|
committer | Adam Johnson <me@adamj.eu> | 2020-11-11 01:52:18 +0000 |
commit | 39b2706f6a8f5129a9d5ea69fe302c86d574fbf0 (patch) | |
tree | 827e000dcdcd25ef8adf8d74d84b6e5c468c0d13 /src/_pytest | |
parent | e986d84466dfa98dbbc55cc1bf5fcb99075f4ac3 (diff) | |
download | pytest-39b2706f6a8f5129a9d5ea69fe302c86d574fbf0.tar.gz |
Add 'node_modules' to norecursedirs
Fixes #8023.
Diffstat (limited to 'src/_pytest')
-rw-r--r-- | src/_pytest/main.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/_pytest/main.py b/src/_pytest/main.py index 04b51ac00..93073226c 100644 --- a/src/_pytest/main.py +++ b/src/_pytest/main.py @@ -53,7 +53,17 @@ def pytest_addoption(parser: Parser) -> None: "norecursedirs", "directory patterns to avoid for recursion", type="args", - default=[".*", "build", "dist", "CVS", "_darcs", "{arch}", "*.egg", "venv"], + default=[ + "*.egg", + ".*", + "_darcs", + "build", + "CVS", + "dist", + "node_modules", + "venv", + "{arch}", + ], ) parser.addini( "testpaths", |