question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to test customizations of Volto components?

See original GitHub issue

I 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:open
  • Created 10 months ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
tiberiuichimcommented, Nov 16, 2022

@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.

0reactions
wesleyblcommented, Nov 24, 2022

Reopening, once the fix #3913 was reverted in #3919

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found