You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WriteFile(jsonPath,JSON.stringify(JSONOutput))//write the generated content to file and return its promise
unfortunatly JSON.stringify() is bad at handling strings with escape \ characters so C:\Users\Bob\ becomes C:UsersBob regardless of what replacer function is used.
When running the
end-to-endtest suite the builds will fail on Windows with a fixture like:"[path]/tests/test11/node_modules/@gov.au/testmodule1"will be replaced with something like:
"C:\Users\Bob\.../tests/test11/node_modules/@gov.au/testmodule1"This particular issue is isolated to the
pancake-jsonandpancake-sassmodules.With
pancake-jsonI would start here:pancake/packages/pancake-json/src/pancake.js
Line 148 in 05c7a73
JSON.stringify()is bad at handling strings with escape\characters soC:\Users\Bob\becomesC:UsersBobregardless of what replacer function is used.With
pancake-sassI would start here:pancake/packages/pancake-sass/src/pancake.js
Line 175 in 05c7a73