How to test customizations of Volto components?
See original GitHub issueI created a Volto project with the command:
yo @plone/volto
I customized Volto components in src/customizations
. I created a Component.test.jsx
file to test a component. when I run:
yarn test
Any import made from my test uses Volto’s original component instead of my custom component.
Issue Analytics
- State:
- Created 10 months ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
11. Customizing Volto Components - Plone Training
Find out how news items are displayed. Customize existing components. Topics covered: Customize existing views with Component Shadowing.
Read more >Getting Started with Custom Blocks in Volto - Six Feet Up
Try the Master Plone 6 training walkthrough on Extending Volto With a FAQ Block Type. Explore your project's src/omlette/components/Blocks ...
Read more >volto/CHANGELOG.md at master · plone/volto - GitHub
App and View components are meant to be used only by Volto internals, so it's no point into having them exported in components/index.js...
Read more >Getting Started with Volto Customisation - TIB AV-Portal
Getting Started with Volto Customisation. Video Player. Download File ... Number of Parts ... Testing the tox4 Pre-Release at Plone-/Zope-Scale.
Read more >volto-dropdownmenu - npm Package Health Analysis - Snyk
volto -dropdownmenu · Volto addon for a customizable dropdown menu For more information about how to use this package see README · Security....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@wesleybl you’re right sorry, I should have pointed you to this code https://github.com/plone/volto/blob/f66ab8ae0b8d54d7767916ac958b555a296744ef/razzle.config.js#L206-L213
The principle is the same, use the addons registry to get the customizations aliases.
Reopening, once the fix #3913 was reverted in #3919