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
After migration from 1.1.1 to 1.3.0, running test task causes the project very package.json file to be overwritten by sth that jest-preset-coffeescript seems to be generating after last changes. Probably this one: b1dbe4f . Especially line 14 of jest-preset.coffee, where I can see fs.writeFileSync and package.json as the target file. I really doubt this is the expected behavior 🤔
The text was updated successfully, but these errors were encountered:
jacekk
changed the title
Project "package.json" file is overwritten while running test
Project "package.json" file is overwritten while running "test"
Apr 5, 2020
@danielbayley Not sure how #46 addesses this issue. It looks the file is using a relative path when loading the package json ( relative to jest-preset.cofffee but is writing to package.json which is unscoped and will write to the location where the node process originated from.
After migration from 1.1.1 to 1.3.0, running
test
task causes the project verypackage.json
file to be overwritten by sth thatjest-preset-coffeescript
seems to be generating after last changes. Probably this one: b1dbe4f . Especially line 14 ofjest-preset.coffee
, where I can seefs.writeFileSync
andpackage.json
as the target file. I really doubt this is the expected behavior 🤔Repo and branches comparison that reproduce the above issue: https://github.com/jacekk/jest-preset-coffeescript-override-issue-reproduce/compare/issue/jest-preset-coffeescript-1-3-0?expand=1
The text was updated successfully, but these errors were encountered: