How to exclude some spec files in jasmine?

无人久伴 提交于 2019-12-11 10:47:47

问题


Is there any way to exclude some spec files with in a directory in jasmine? For example, I want to exclude all spec in the extended folder from Foo folder.

```
├── Foo
│   ├── sub
|   |    |
|   |    |--extended
│   │         ├── a-spec.js
|   |         ├── e-spec.js
│   ├── b-spec.js
│   ├── c-spec.js
│   ├── d-spec.js
└── 
```

I have tried with folowing jasmin.json.But this is not working.

    {
    "spec_dir": "Foo/",
    "spec_files": [
        "**/*[sS]pec.js",
        "!**/extended/*.js"
    ]
}

回答1:


You can get information regrading this issue on jasmine github issue.



来源:https://stackoverflow.com/questions/50410351/how-to-exclude-some-spec-files-in-jasmine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!