【问题标题】:excluded files are not being skipped排除的文件没有被跳过
【发布时间】:2020-10-09 09:32:39
【问题描述】:

所以我有以下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

我的设置有什么问题?

【问题讨论】:

    标签: javascript node.js ava


    【解决方案1】:

    根据我的理解"!testing/tests/**/__helpers__/*" 会忽略__helpers__ 中的所有文件,但是在提供的错误中,setup.ts 在另一个目录中。尝试将其更改为:

    "files" : [
        "testing/tests/**",
        "!testing/tests/**/__helpers__/*/**",
    ]
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-09-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-06
      • 2019-01-15
      • 2012-04-11
      相关资源
      最近更新 更多