tests run on old output files on next standalone #137
Labels
No labels
backend
bug
CI
dependencies
design
documentation
duplicate
enhancement
frontend
github_actions
good first issue
help wanted
invalid
javascript
question
refactoring
security
tooling
UX
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
NBIS/sda-download-ui#137
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
When running the
testscript a test can fail due to issues with .next folderExpected behavior
Vitest configuration can help specify folders to include or exclude.
Additional context
The error stack:
FAIL .next/standalone/src/app/components/DownloadChecksumsButton.test.ts [ .next/standalone/src/app/components/DownloadChecksumsButton.test.ts ] Error: Cannot find module './cjs/react-jsx-dev-runtime.development.js' Require stack: - /home/kattis/IdeaProjects/sda-download-ui/frontend/.next/standalone/node_modules/react/jsx-dev-runtime.js ❯ Object.<anonymous> .next/standalone/node_modules/react/jsx-dev-runtime.js:6:20Which was solved by:
rm -rf .nextand then the tests were working again.