Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build not passing - silent fail? #2

Closed
kasperlewau opened this issue Jun 22, 2016 · 4 comments
Closed

Build not passing - silent fail? #2

kasperlewau opened this issue Jun 22, 2016 · 4 comments

Comments

@kasperlewau
Copy link

I hate to be this guy (chill, it's 0.10.0...) but, you've got an .only that's reporting a non-passing build as passing on [email protected] & [email protected] with a clean npm i.

failing

Builds on


I'd submit a PR, but my head is not where it's supposed to be right now and duty calls (laundry...). Just though I'd let you know. Cheers! 🔨

@sindresorhus
Copy link
Owner

sindresorhus commented Jun 22, 2016

Ugh. Thanks for reporting :) Luckily, I only had a couple of incorrect tests. Code was working perfectly.

.only is so dangerous! I actually have XO linter set up, which bundles the https://github.com/avajs/eslint-plugin-ava/blob/master/docs/rules/no-only-test.md rule, which should have caught this. @jfmengels Any idea why it didn't?

@jfmengels
Copy link

Hmm, no, sounds really odd. I'll try to look into it later, but it is odd indeed.

@jfmengels
Copy link

import {serial as test} from 'ava'; it's this part that we don't recognize. Do we want to handle this case or does that seem like a weird use of AVA? IMO, it kind of does :D, but we should probably try to handle it.

Didn't know you could destructure things like serial and that it was the same thing as test.serial. We actually don't even handle anything when AVA is not imported as test. Plenty of room for improvement here.

@sindresorhus
Copy link
Owner

@jfmengels I opened an issue: avajs/eslint-plugin-ava#121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants