This could save a lot of time when troubleshooting unexpected behavior. I was trying to set up a new project and went through this experience:
I created a spec with expect(true).toBe(false); and ran jasmine.
Why does it say no specs found? Where is it looking?
Does the command line have a --verbose flag (or equivalent)? No. Not that I can find.
Then I googled. I couldn't find anything relevant, but some of the links gave me ideas.
I had set "spec_dir" to "", ".", "/", and "./"—something I've never done before. _Is this a bug of some sort, where Jasmine doesn't scan for specs in the same directory as "specdir"?
No, because I created a subdirectory and put a spec in there. It couldn't find it either. _Is this a limitation of some sort, where you can't specify a "specdir" at the project root?
No, because...
Is my config file actually being used?
No. My config file isn't named jasmine.json, so jasmine won't use it by default. That's the problem.
I've run into similar problems in the past where a --verbose flag would've helped so I'd like to request this as a feature. Thanks
This could save a lot of time when troubleshooting unexpected behavior. I was trying to set up a new project and went through this experience:
expect(true).toBe(false);
and ranjasmine
.--verbose
flag (or equivalent)? No. Not that I can find.""
,"."
,"/"
, and"./"
—something I've never done before. _Is this a bug of some sort, where Jasmine doesn't scan for specs in the same directory as "specdir"?jasmine.json
, so jasmine won't use it by default. That's the problem.I've run into similar problems in the past where a
--verbose
flag would've helped so I'd like to request this as a feature. Thanks