Closed sneridagh closed 1 year ago
@sneridagh Don't remember, I think @valentinab25 added. Within the package description it says:
Jest doesn't handle non JavaScript assets by default.
You can use this module to avoid errors when importing non JavaScript assets.
I think we can remove it, we are not using it anymore, looks like we are now using jest-css-modules for the same purpose
@avoinea I think so, Volto should provide them, and if not, we should. Anyways I think we are good if we remove them.
@sneridagh these dependencies were removed in alpha branch, but not in others. Is this enough to close this issue?
I'd say so! btw, I'm now using @plone/scripts
addon command for testing Volto add-ons.
https://training.plone.org/effective-volto/testing/addons.html?highlight=plone%20scripts#plone-scripts https://github.com/plone/volto/blob/master/packages/scripts/README.md#addon
@sneridagh Interesting! It does not use symlinks, which avoids problems in test execution, since jest does not follow symlinks.
@avoinea Why
jest-transform-stub
is required again? https://github.com/plone/volto-addon-ci/blob/0d4e8c752619b8b1cb235368679decac0f0fa5cb/docker-entrypoint.sh#L75also, if you were to add
jest-unit
somewhere you would do it in Volto core or in the add ons?