Skip to content

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

Merged
danez merged 3 commits intobabel:masterfrom
danez:fix-empt-fixture-dirs
Dec 3, 2018
Merged

Ignore empty fixture directories and fix fixtures in the parser#9113
danez merged 3 commits intobabel:masterfrom
danez:fix-empt-fixture-dirs

Conversation

@danez
Copy link
Copy Markdown
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
Copy Markdown
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
Comment thread packages/babel-helper-fixtures/src/index.js
Copy link
Copy Markdown
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.

3 participants