簡體   English   中英

排除的文件沒有被跳過

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM