Fix: Don't mutate a Filter instance #4318
Annotations
2 errors and 1 warning
Run JavaScript tests:
src/web/hooks/__tests__/usePageFilter.jsx#L89
AssertionError: expected Filter{ entityType: 'filter', …(3) } to deeply equal Filter{ entityType: 'filter', …(1) }
- Expected
+ Received
Filter {
"entityType": "filter",
+ "filter_type": undefined,
+ "id": undefined,
"terms": Array [
FilterTerm {
"keyword": "page",
"relation": "=",
"value": "filter",
+ },
+ FilterTerm {
+ "keyword": "rows",
+ "relation": "=",
+ "value": 42,
},
],
}
❯ src/web/hooks/__tests__/usePageFilter.jsx:89:31
|
Run JavaScript tests
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading