[英]excluded files are not being skipped
所以我有以下files
設置
"files" : [
"testing/tests/**",
"!testing/tests/**/__helpers__/*",
],
但是,不會跳過__helpers__
文件夾中的文件
✖ No tests found in testing/tests/graphql/stage-2/__helpers__/workspace/setup.ts, make sure to import "ava" at the top of your test file
- graphql › stage-2 › tests › workspace.ts › do later
✔ general › tests › functions.ts › functions returns proper difference
─
`--fail-fast` is on. 1 test file was skipped.
1 test passed
1 test todo
我的設置有什么問題?
根據我的理解"!testing/tests/**/__helpers__/*"
會忽略__helpers__
中的所有文件,但是在提供的錯誤中, setup.ts
在另一個目錄中。 嘗試將其更改為:
"files" : [
"testing/tests/**",
"!testing/tests/**/__helpers__/*/**",
]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.