Skip to content

BC-9973 - Migrate to Vitest #3761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 75 commits into
base: BC-8695-vite-upgrade
Choose a base branch
from

Conversation

odalys-dataport
Copy link
Contributor

Short Description

Links to Ticket and related Pull-Requests

Changes

Data-security

Deployment

New Repos, NPM packages or vendor scripts

Screenshots of UI changes

Checklist before merging

  • QA: In addition to review, the code has been manually tested (if manual testing is possible)
  • PO: Any deviation from requirements was agreed with Product-Owner / ticket author / support-team
  • DEV: Every new component is implemented having accessibility in mind (e.g. aria-label, role property)

Notice: Please keep this Pull-Request as a Draft (or add WIP label), until it is ready to be reviewed

@odalys-dataport odalys-dataport self-assigned this Jun 20, 2025
@uidp uidp added WIP someone is working on that and removed WIP someone is working on that labels Jun 20, 2025
"types": ["node"],
"typeRoots": ["./node_modules/@types", "./types"],
"types": ["node", "vitest/globals"],
"typeRoots": ["./node_modules/@types", "./types", "./node_modules"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should avoid adding the whole node_modules path here.

vite.config.ts Outdated
find: /^@@\/(.*)$/,
replacement: fileURLToPath(new URL("$1", import.meta.url)),
},
],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The additional resolve aliases are only used when running the tests. We should remove them from the configuration for build and serve commands.

vite.config.ts Outdated
@@ -1,3 +1,4 @@
/// <reference types="vitest" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exactly is this for and is this still needed? As well as should we separate vite and vitest configs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants