Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Windows - Incompatible fixture paths #96

Open
azerella opened this issue Feb 11, 2019 · 0 comments
Open

Windows - Incompatible fixture paths #96

azerella opened this issue Feb 11, 2019 · 0 comments
Labels
🐛 bug Something isn't working the way it should.

Comments

@azerella
Copy link
Contributor

azerella commented Feb 11, 2019

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 and pancake-sass modules.

With pancake-json I would start here:

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.

With pancake-sass I would start here:

WriteFile( location, sass ) //write file

@azerella azerella added the 🐛 bug Something isn't working the way it should. label Feb 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 bug Something isn't working the way it should.
Projects
None yet
Development

No branches or pull requests

1 participant