Skip to content

chore: Volto 19 support - #48

Merged
avoinea merged 15 commits into
developfrom
volto19
Nov 19, 2026
Merged

avoinea merged 15 commits into
developfrom
volto19

Conversation

@dobri1408

Copy link
Copy Markdown
Contributor

Volto 19 support: CI/test configuration and dependency updates.

  • Migrated to the Volto 19 add-on layout (packages/ workspace)
  • Unit tests migrated from Jest to Vitest
  • Jenkins runs against the packages/ layout on both Volto 18 and Volto 19

avoinea and others added 15 commits August 12, 2026 16:47
Restore the Cypress end-to-end coverage instrumentation: babel-plugin-istanbul plus a coverage babel config that instruments only the add-on sources. Unit tests now use the Istanbul coverage provider so the unit and e2e lcov reports share the same line model and can be merged by SonarQube.
The appHistory push can race with the client hydration, which then settles back on the server-rendered view URL and the title editor never mounts.
The Volto 19 migration dropped RAZZLE_CI from start-ci, but packages/volto-object-widget/src/index.js only registers the demo block when it is set: the integration test asserting the '.button.ObjectWidgetDemo' chooser entry failed and left the '/Plone/cypress' fixture behind, which cascaded into the 11 remaining specs failing with a duplicate content id.

develop set it for both the build and the start command; do the same.
Vitest 3.2.7 rejects a mock factory that returns undefined: 'vi.mock("jsoneditor/dist/jsoneditor.min.css", factory) is not returning an object'. The whole JsonWidget suite errored before running (volto19 unit stage exit 1). Return an empty object for both style imports.
…in vitest

Look up the Volto checkout in any parent folder, resolve the core packages through Volto and alias the add-ons kept in each repository's packages/ folder, so the tests also run from the eea-website-frontend workspace.
npm reads README/LICENSE only from the package directory. The package
readme keeps the add-on documentation, the repository readme becomes a
landing page, the secret scanning notes move to DEVELOP.md.
Drop Volto 17: the package requires @plone/volto >=18 <20 and Node.js >=22.
@avoinea
avoinea merged commit 954b35f into develop Nov 19, 2026
9 checks passed
@avoinea
avoinea deleted the volto19 branch November 19, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants