babel-plugin-tester icon indicating copy to clipboard operation
babel-plugin-tester copied to clipboard

same files - no match

Open zabakala opened this issue 5 years ago • 2 comments

Hi. I am diving into a simple test. Despite the content match of both the input and output files, the test results do differ in content due to the presence of (invisible) dots as apparent from the img below. How can it be avoided?

dots

zabakala avatar Feb 23 '20 14:02 zabakala

same here, did you find a solution?

TanDung2512 avatar Oct 19 '21 15:10 TanDung2512

@zabakala @TanDung2512 You can try this workaround which works in my case. Use \n at the line feed positions (which appears to be the reported differences) in the value of the code field. Btw, it's weird that some of my tests (which also includes line feed) doesn't fail like the others. In the below screenshot, the former test does not fail, but the later does (which has been fixed using the workaround). image

ngquhuanbl avatar Nov 05 '21 14:11 ngquhuanbl

@zabakala @TanDung2512 @ngquhuanbl I know it's been a while, but do any of you still have the code/repo that was producing this behavior that you'd be willing to share, or would you be willing to create a simple MRE?

Also, as this may be a babel issue outside the scope of this plugin, see https://github.com/babel-utils/babel-plugin-tester/issues/51#issuecomment-540717197.

Xunnamius avatar Oct 02 '22 20:10 Xunnamius

Closing this for now, but if anyone encounters this issue going forward and https://github.com/babel-utils/babel-plugin-tester/issues/51#issuecomment-540717197 doesn't help, ping me and I'll reopen it.

Xunnamius avatar Oct 09 '22 15:10 Xunnamius