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
Add test for options to babel-cli #5398
Conversation
123db6b
to
464ad19
Compare
Hey @outsideris! It looks like one or more of your builds have failed. I've copied the relevant info below to save you some time. |
I'm stuck here.
Also, I tried to add tests for |
If the test can't run on Node v4 I would skip it, like: it('foo', function() {
if (getMajorVersion(process.version) === 4) {
this.skip();
}
}); |
464ad19
to
8d854f1
Compare
Hey @outsideris! It looks like one or more of your builds have failed. I've copied the relevant info below to save you some time. |
8d854f1
to
a3df0b1
Compare
Hey @outsideris! It looks like one or more of your builds have failed. I've copied the relevant info below to save you some time. |
a3df0b1
to
f47874c
Compare
Codecov Report
@@ Coverage Diff @@
## 7.0 #5398 +/- ##
==========================================
+ Coverage 85.24% 85.29% +0.05%
==========================================
Files 284 284
Lines 9958 9958
Branches 2780 2780
==========================================
+ Hits 8489 8494 +5
+ Misses 968 963 -5
Partials 501 501
Continue to review full report at Codecov.
|
f47874c
to
ca010aa
Compare
I removed a test for a |
packages/babel-cli/test/index.js
Outdated
@@ -174,7 +174,9 @@ fs.readdirSync(fixtureLoc).forEach(function (binName) { | |||
opts.inFiles[".babelrc"] = helper.readFile(babelrcLoc); | |||
} | |||
|
|||
it(testName, buildTest(binName, testName, opts)); | |||
if (testName !== "flag-dashed-inspect" || !process.version.match(/^v[045]/)) { |
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 want to exclude the test for --inspect
in Node v0.12, v4 and v5.
I doesn't like this workaround, but I couldn't find better way.
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.
We recently landed #5765, which allows you to specify a minimum node.js version via minNodeVersion
@outsideris sorry for the delay on this, but let's revive this as we landed #5785 and should probably get some test coverage around this. |
@existentialism I changed the label because you set (by mistake?) the documentation one. |
ca010aa
to
6b8b508
Compare
6b8b508
to
8f096ad
Compare
I'm trying to fix it and change the base branch to 7.0. |
8f096ad
to
1cee0e9
Compare
1cee0e9
to
2a8851f
Compare
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/4907/ |
I think |
So, how can I solve it? |
It's tests for babel-cli's options, see the coverrage.