Tests are not updating snapshot-using enzyme/jest

I have some problem with snapshot test, previously snapshot was working properly ,i don't know what really happened.when ever we run yarn test it fails Here are the steps

  1. snapshot created newly - passed
  2. yarn test - fails
  3. yarn test -u - passed
  4. yarn test - fails

Code:

function renderClass(override: Partial<ClassicProps> = {}) {
const props: ClassicProps = {
renderCount: 0,
rowcard: {
  rowCount: 0,
},
...override,
}
return <Card {...props} />
}
describe(' tests', () => {
it('SnapShot', () => {
const wrapper = renderer.create(renderClass()).toJSON()
expect(wrapper).toMatchSnapshot()
})
}

Need help on this