问题
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