public icon indicating copy to clipboard operation
public copied to clipboard

wallaby.json should support exclusion path

Open pgdesjardins opened this issue 11 years ago • 6 comments

I'm testing wallaby with cg-angular generator. cg-angular generates spec files in the same folder as the related object. it would be nice if wallaby.json allowed for path exclusion in the files array. It think node golb already has this kind on notation.

ex:

"files": [ "/*.js", "!/*-spec.js" ],

"tests": [
    "tests/**/*-spec.js"
]

pgdesjardins avatar Apr 05 '15 22:04 pgdesjardins

Agreed, will be nice to have. As you probably already know, for now you can exclude files by specifying file objects instead of strings and using ignore: true flag: { "pattern": "src/**/*-spec.js", "ignore": true }

ArtemGovorov avatar Apr 06 '15 00:04 ArtemGovorov

RTFM is often the answer. Right? Thanks for that.

Thank you for this great product. I'll have more than a few tester for you when the visual studio version is out.

On Sun, Apr 5, 2015 at 8:32 PM, Artem Govorov [email protected] wrote:

Agreed, will be nice to have. As you probably already know, for now you can exclude files by specifying file objects https://github.com/wallabyjs/public#file-object instead of strings and using ignore: true flag: { "pattern": "src/*/-spec.js", "ignore": true }

— Reply to this email directly or view it on GitHub https://github.com/wallabyjs/public/issues/62#issuecomment-89873804.

Gabriel Desjardins [email protected]

pgdesjardins avatar Apr 06 '15 01:04 pgdesjardins

@pgdesjardins thanks! Visual Studio version will be out in few weeks.

ArtemGovorov avatar Apr 07 '15 04:04 ArtemGovorov

Added the way to invert ignore flag by using ! as you have been suggesting. The feature description is in file object ignore property section.

ArtemGovorov avatar Apr 28 '15 07:04 ArtemGovorov

does this apply to spec files that are processed with webpack ?

LPCmedia avatar Dec 05 '17 01:12 LPCmedia

@LPCmedia This applies to everything listed in the files/tests lists.

ArtemGovorov avatar Dec 05 '17 01:12 ArtemGovorov