Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

test: change babel sourceType to unambiguous with FixtureTester #54

Closed
wants to merge 3 commits into from

Conversation

armano2
Copy link
Contributor

@armano2 armano2 commented Dec 21, 2018

This PR changes babel sourceType to unambiguous, additionally i found out that javascript/basic tests are not executed

FixturesTester is doing what this messy code in fixures-to-test.ts was doing with additional check if files test directory is present, this make code easier to read and understund

sourceType unambiguous:

Babel added autodetection of sourceType, with that i was able to remove most of parseWithSourceTypeModule and leave it in only 4 files
i renamed this property to ignoreSourceType and changed logic to ignore source type comparison instead of not doing comparison at all.

there is one more issue with autodetection in babel: babel/babel#9213

@JamesHenry what do you think about this?
those changes got extracted from #52

@armano2 armano2 force-pushed the babel-unambiguous branch 2 times, most recently from e822680 to a03c4ab Compare December 22, 2018 05:23
@armano2 armano2 changed the title test: change babel sourceType to unambiguous test: change babel sourceType to unambiguous with FixtureTester Dec 24, 2018
@armano2 armano2 closed this Dec 25, 2018
@armano2 armano2 reopened this Dec 26, 2018
@armano2 armano2 closed this Dec 26, 2018
@armano2 armano2 deleted the babel-unambiguous branch December 28, 2018 20:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant