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
{{ message }}
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.
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-end
test 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-json
andpancake-sass
modules.With
pancake-json
I 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:UsersBob
regardless of what replacer function is used.With
pancake-sass
I would start here:pancake/packages/pancake-sass/src/pancake.js
Line 175 in 05c7a73
The text was updated successfully, but these errors were encountered: