-1
First thank you for reading my question!
Setting:
I’m testing an angular 9 application with jest of a component using a solver class'.
I tried to set up a mock to resolve it, but when running tests I always get an error, saying the snapshot date property is not defined.
Follow the test configuration print:
that your mock has this snapshot and date property?
– Eduardo Vargas
Hello Eduardo. tried this way tbm: route: { snapshot: { data: {campaigns: campanhasFake} } } But the way jest is mounted should simulate these snapshot and date properties.
– Thiago Santos