Skip to content

[stable34] Add a vitest harness for the front-end - #1565

Merged
susnux merged 1 commit into
stable34from
backport/1560/stable34
Sep 8, 2026
Merged

susnux merged 1 commit into
stable34from
backport/1560/stable34

Conversation

@backportbot

@backportbot backportbot Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Backport of #1560

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Review and verify the backported changes
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot
backportbot Bot requested review from CarlSchwan and solracsf September 8, 2026 12:43
@backportbot backportbot Bot added this to the Nextcloud 34.0.4 milestone Sep 8, 2026
The app had no JavaScript tests at all. Vitest runs the specs in "tests/js",
"make test" and the "node-test" workflow run it, and the README no longer
claims that "make test" runs everything, since the PHP tests need a Nextcloud
instance around them.

The workflow follows the same shape as the other npm ones in this repository:
a "changes" job filtering on paths, the real job gated on it, and a "summary"
job that always reports so the check can be a required one without getting
stuck pending on a pull request that touches nothing relevant.

The specs added here hold on the current code: they check that every viewer
parameter the component reads is provided by the template, and that the
template still has the same elements as the pdf.js viewer it is a copy of.
The regression tests for the individual fixes come with those fixes.

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@CarlSchwan
CarlSchwan force-pushed the backport/1560/stable34 branch from 6166070 to 90b450b Compare September 8, 2026 13:10
@CarlSchwan
CarlSchwan marked this pull request as ready for review September 8, 2026 13:15
@susnux

susnux commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Does only contain test files - release bundle not changed (checked this!).

@susnux
susnux merged commit ecddb43 into stable34 Sep 8, 2026
41 of 44 checks passed
@susnux
susnux deleted the backport/1560/stable34 branch September 8, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants