bahmutov / snap-shot

Jest-like snapshot feature for the rest of us, works magically by finding the right caller function
169 stars 3 forks source link

Add mode to disallow saving snapshots #62

Closed bahmutov closed 7 years ago

bahmutov commented 7 years ago

for example saving new snapshots on CI makes no sense, thus we need a flag to require an existing snapshot, otherwise fail

bahmutov commented 7 years ago

probably can disallow save when process.env.CI is set (Travis, Circle, GitLab CI all define CI variable)