Hi!
In my app I have a traditional tests/acceptance/foo-test.js and a new tests/acceptance/foo.feature.
Turns out, Yadda compiles the feature into a temporary file and puts it into the tests folder for QUnit to run.
The problem is that it overwrites the existing tests/acceptance/foo-test.js! The change persists since it's already under version control Tests still pass, so the autogenerated file can be checked into git by accident.
A simple solution could be to prefix autogenerated files with something a user would never write by hand, e. g. __yadda__foo-test.js instead of just foo-test.js.
Hi!
In my app I have a traditional
tests/acceptance/foo-test.jsand a newtests/acceptance/foo.feature.Turns out, Yadda compiles the feature into a temporary file and puts it into the tests folder for QUnit to run.
The problem is that it overwrites the existing
tests/acceptance/foo-test.js! The change persists since it's already under version control Tests still pass, so the autogenerated file can be checked into git by accident.A simple solution could be to prefix autogenerated files with something a user would never write by hand, e. g.
__yadda__foo-test.jsinstead of justfoo-test.js.