mochiya98 / mocha-chai-jest-snapshot

provides snapshot testing like jest
MIT License
29 stars 5 forks source link

snapshots get updated every time #10

Closed biowaffeln closed 2 years ago

biowaffeln commented 3 years ago

Hi! I'm running into the problem that the snapshots get updated on every run, even if UPDATE_SNAPSHOT is set to false. I have a very basic setup with typescript, here is the setup.ts file:

import * as chai from 'chai';
import { jestSnapshotPlugin } from 'mocha-chai-jest-snapshot';

chai.use(jestSnapshotPlugin());

And every time I'm running this command the snapshot gets updated:

npx mocha --file test/setup.ts -r ts-node/register test/**/*.test.ts