nimblehq / elixir-templates

Our optimized Elixir templates used in our projects
https://nimblehq.co
MIT License
86 stars 6 forks source link

Fix: Loses all uncommitted changes after running `VersionTest` #293

Closed hanam1ni closed 1 year ago

hanam1ni commented 1 year ago

Issue

In the NimbleTemplate.VersionTest test, it invokes git checkout . command, which discards all the uncommitted changes.

Expected

Tests should not discard any changes

Steps to reproduce

  1. Make any changes to the codebase
  2. Run NimbleTemplate.VersionTest test, mix test test/nimble_template/version_test.exs
  3. All changes made in step (1) get discarded