Open bbourn opened 4 years ago
If the tests work with v4.10.0 but not 4.10.1 or 4.10.2, then this sounds like a material-ui issue. The footer of this table doesn't attach IDs that look like that, so I'm guessing this something that got introduced into the main library recently.
Yes. Appears so.
I hit the same issue with material-ui/core package, version 4.11.0. Version 4.9.14 works well and it doesn't break our jest snapshot tests
@albertocorrales hi, i did that but i am still getting this error: You should use
import { alpha } from '@material-ui/core/styles'``
I have the same issue in material-core 4.8.2
Expected Behavior
Jest snapshots stay the same when no code changes.
Current Behavior
Snapshots now get a mui-id: field that changes
Steps to Reproduce (for bugs)
We use jest and mui-datatables 3.1.1.
My jest snapshot tests are failing the mui-datatables with 4.10.1 or 4.10.2 but NOT 4.10.0
I am hoping I can describe high level what is happening and either here or the material-ui/core folks will 'just know' what I am talking about... I am sure it will be 'fixed' downstream one way or another so this might serve as a QA post;
My test passes.
Upgrade from 4.10.0 to 4.10.2. (No '^' in package-lock.json so change version and run yarn install)
Now snapshot fail includes an 'id' field it did not have before.
And that 'id' changes every test after: