This approach utilises native ES modules which means you can share the browser code with NodeJS without transpilation. I believe it makes it better as it reduces the complexity. Currently Jest does not support native ES modules although this will probably change in the future.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This approach utilises native ES modules which means you can share the browser code with NodeJS without transpilation. I believe it makes it better as it reduces the complexity. Currently Jest does not support native ES modules although this will probably change in the future.