You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 "spec_dir"?
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 "spec_dir" 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
jasmine v5.1.0
jasmine-core v5.1.1
The text was updated successfully, but these errors were encountered:
DanKaplanSES
changed the title
Add a --verbose flag that prints where jasmine looked for spec files.
Add a --verbose flag
Dec 7, 2023
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 "spec_dir"?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. ThanksThe text was updated successfully, but these errors were encountered: