Jest supports asynchronous matchers and asymmetric matchers, two required things to port expect-puppeteer matchers into Jest matchers. Some problems still persist:
Some matchers are returning an element like toMatchElement()
A matcher should not return anything, yes. But it is very convenient to assert that something is in the page and get the element matched in the page. I think we probably need to rethink this part. I am open to propositions.
Some matchers are already used by Jest like toMatch
I think it is not a big problem, we can change the name. Also open to propositions.
Jest supports asynchronous matchers and asymmetric matchers, two required things to port expect-puppeteer matchers into Jest matchers. Some problems still persist:
Some matchers are returning an element like
toMatchElement()A matcher should not return anything, yes. But it is very convenient to assert that something is in the page and get the element matched in the page. I think we probably need to rethink this part. I am open to propositions.
Some matchers are already used by Jest like
toMatchI think it is not a big problem, we can change the name. Also open to propositions.