Closed PierreBresson closed 3 years ago
@PierreBresson How can i run the test locally. I tried all from this section but it seems like that is not the one. https://github.com/NMF-earth/nmf-app#-testing
The commands here all the test gets green.
As i think it should fail on all others machine expect urs as the file contains ur local path
app/screens/Act/__tests__/__snapshots__/ActScreen.test.tsx.snap
Let me know your thoughts here.
@hb2708 I'm not refering to the tests (snapshots) but to the sutainable guide scripts : node scripts/generate-guides.js
Describe the bug
Remove "personal" path (
/Users/pierrebresson/Documents/Git/nmf-app/assets//markdown/
) in snapshot file (like it was before). Seekey
in this hot fixThis is a side effect of using
${process.env.PWD}
in order to make the script work (see issue #199 )
This say the other way around. i thought the change in scripts/generate-guides.js
is acceptable. Coz that makes it work on all the machines
@hb2708 yes you can run then and they work but next time someone else than me run the guide script the following path will change : /Users/pierrebresson/Documents/Git/nmf-app/assets//markdown/
it's bad praticse to have this kind of path users/xxx
@PierreBresson So I figured the way to regenerate new snapshots. And made some changes to generate-guides.js. Take a look and see if that works for you. I did test locally and testes were green
Describe the bug
Remove "personal" path (
/Users/pierrebresson/Documents/Git/nmf-app/assets//markdown/
) in snapshot file (like it was before). Seekey
in this hot fixThis is a side effect of using
${process.env.PWD}
in order to make the script work (see issue #199 )