-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Ensure babel-cli tests compare generated output with out-files #5205
Conversation
@existentialism, thanks for your PR! By analyzing the history of the files in this pull request, we identified @hzoo, @DrewML and @zertosh to be potential reviewers. |
Codecov Report
@@ Coverage Diff @@
## 7.0 #5205 +/- ##
==========================================
+ Coverage 85.39% 85.43% +0.04%
==========================================
Files 201 201
Lines 9483 9483
Branches 2688 2688
==========================================
+ Hits 8098 8102 +4
+ Misses 892 890 -2
+ Partials 493 491 -2
Continue to review full report at Codecov.
|
@@ -13,6 +13,10 @@ const fs = require("fs"); | |||
const fixtureLoc = path.join(__dirname, "fixtures"); | |||
const tmpLoc = path.join(__dirname, "tmp"); | |||
|
|||
const fileFilter = function(x) { | |||
return x !== ".DS_Store"; |
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 guess this was making interference during the tests. Since .DS_Store are ignored in Git I think this shouldn't happen so often.
eb2c507
to
20ebe2c
Compare
20ebe2c
to
06c219a
Compare
Updated to include some tests for the new ignore/only behavior with |
Summary:
readDir
, which enables us to include dotfiles when creatingopts.inFiles
andopts.outFiles
out-files
for matching, missing and extraneous filesWhile digging a little deeper into #5083, I noticed that
babel-cli
tests were only comparingout-files
to generated (and not vice versa), which doesn't check for missing or extraneous files.This would make testing
--copy-files
and the potential new--copy-dot-files
flags hard :)This should also allow us to write more comprehensive tests for
babel-cli
.