-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
Demo broken shareable configs #83
Conversation
Cool. Thanks for doing this. Could you make it something I could merge? So that tests can just fail until it's fixed. |
You mean to |
@@ -94,5 +94,8 @@ | |||
"ignores": [ | |||
"cli.js" | |||
] | |||
}, | |||
"ava": { | |||
"files": "test/cli.js" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, remove this.
55f7056
to
fcb3374
Compare
Done! |
@@ -31,3 +31,9 @@ test.skip('ignores fixture', async t => { | |||
const cwd = path.join(__dirname, 'fixtures/ignores'); | |||
t.throws(execa('../../../cli.js', ['--no-local'], {cwd})); | |||
}); | |||
|
|||
test('supports shareable config', async () => { | |||
await execa('rm', ['-rf', '../node_modules/xo'], {cwd: __dirname}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, didn't notice this. Why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yes, I guess this is another, separate issue. https://github.com/sindresorhus/xo/blob/master/package.json#L91 causes cli.js
to stop execution and rely on node_modules/xo
rather than version in master
branch. So when you're testing cli.js
, you are not actually testing it, because it spawns cli.js
from node_modules/xo
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, that's what the --no-local
flag is supposed to prevent, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh ok, I'll change it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done ;) Totally my overshit oversight.
fcb3374
to
cc79ed2
Compare
Demo broken shareable configs
PR to demonstrate #71 (comment). The test project is in
test/fixtures/project
.