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

Ignore empty fixture directories and fix fixtures in the parser #9113

Merged
merged 3 commits into from Dec 3, 2018
Merged

Ignore empty fixture directories and fix fixtures in the parser #9113

merged 3 commits into from Dec 3, 2018

Conversation

danez
Copy link
Member

@danez danez commented Dec 2, 2018

Q                       A
Fixed Issues?
Patch: Bug Fix? y
Major: Breaking Change? n
Minor: New Feature? n
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

Okay this PR started because I was annoyed that sometimes when I added fixtures somewhere but then ended up reverting, the empty folder was keep but the fixture runner was still generating an output.js.

So I went in and changed the behavior of the fixture runner to ignore folders if there is neither input.ext nor exec.js. This is the first commit.

I checked which folders are ignored and noticed that there are some test fixtures in babylon which are never executed because the folder structure was wrong or the files were named incorrectly.

I fixed all of these cases which are in the second commit.

I noticed another potential issue with regular expressions where we do not check if character ranges are valid, but I did not want to dive into this one yet. So the tests for this are currently skipped.

var x = /[\u0063-b]/u; // should error I think

I removed the other change and moved it into a PR #9114

@danez danez added PR: Bug Fix 🐛 A type of pull request used for our changelog categories pkg: parser PR: WIP labels Dec 2, 2018
@babel-bot
Copy link
Collaborator

babel-bot commented Dec 2, 2018

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9516/

@danez danez removed the PR: WIP label Dec 2, 2018
@danez danez changed the title Ignore empty fixture directories and correctly parse floats with leading zero Ignore empty fixture directories and fix fixtures in the parser Dec 2, 2018
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I did only review the first commit)

@danez danez merged commit 07eaa3c into babel:master Dec 3, 2018
@danez danez deleted the fix-empt-fixture-dirs branch December 3, 2018 06:55
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: tests outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants