Open thoughtworks-tcaceres opened 2 years ago
@connected-tcaceres Haven't tried, but it should be possible to use without Jest. I'll look into extending the functionality, I don't have a good answer yet :-)
@connected-tcaceres Haven't tried, but it should be possible to use without Jest. I'll look into extending the functionality, I don't have a good answer yet :-)
I created a basic code sandbox: https://codesandbox.io/s/stoic-fog-iphcw2?file=/src/App.js
Hi @connected-tcaceres!
I've looked into extending tiny-jest and you can see progress in #8.
Though, as I found out, jest
has a lot of their functionality built-in within their context as well as at least two different versions of plugin API. In other words, supporting jest plugins would make tiny-jest not so tiny.
However, supporting jasmine-dom is easy, but for your use case you might as well use jasmine altogether.
Sadly, I'm short on time at the moment and not sure when I'll be able to finish the work I've started, but feel free to pick it up, if you're up for it.
Is it possible to use this library with react testing library as well? Also, is it possible to extend the functionality of the expect to handle the additional methods from
import '@testing-library/jest-dom'
?Thanks in advance.