Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Setup tests for source maps #6914
I'd like to find a good approach to testing source maps.
So this is my "proposal" for testing source maps generation.
Just to be clear : you're writing down an expression, then the corresponding generated code and checking that the generated code mapping is the same as the original source source right?
One problem with sourcemaps might be with inner expressions, such as the
It allows to check any valid Haxe expression:
if(expect(condition, [Js => 'condition'])) ifAction(); if(condition) expect(ifAction(), [Js => 'ifAction()']); if(condition) ifAction() else expect(elseAction(), [Js => 'elseAction()']);