When I follow the instructions found here
and add the import reference as they specify:
import "@ui5/webcomponents/dist/Button";
the application works fine and is able to import the button.
However, when I npm run test, I get an error:
SyntaxError: Cannot use import statement outside a module.
Any idea how to fix this?
react-scripts testcommand? Unlike pure jest, react-scripts add some configuration on top, which makes imports working