Skip to content
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

Adapt the debug and test scripts for vscode-jest-runner to be compatible with Vitest. #1923

Merged
merged 5 commits into from
Jun 18, 2024

Conversation

holgerkoser
Copy link
Member

@holgerkoser holgerkoser commented Jun 14, 2024

What this PR does / why we need it:
We recently transitioned our testing framework from Jest to Vitest. Following this change, we encountered issues with debugging our tests, as the existing configuration was no longer compatible. To resolve this, we modified the configuration of vscode-jest-runner and adapted the necessary scripts to ensure seamless integration with Vitest. These changes have restored our ability to debug tests effectively within Visual Studio Code.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

Fixed debugging issues by updating vscode-jest-runner config and scripts.

* master:
  Update dependency vue-router to v4.3.3 (#1907)
  Update Yarn to v4.3.0 (#1910)
  Update dependency jest to v29.7.0 (#1919)
@gardener-robot gardener-robot added needs/review Needs review size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) labels Jun 14, 2024
@gardener-robot-ci-3 gardener-robot-ci-3 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jun 14, 2024
@holgerkoser holgerkoser changed the title Adapt the debug and test scripts for vscode-jest-runner to be compatible with Vitest. Adapt the debug and test scripts for vscode-jest-runner to be compatible with Vitest. Jun 14, 2024
@gardener-robot-ci-1 gardener-robot-ci-1 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Jun 14, 2024
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jun 17, 2024
@gardener-robot-ci-3 gardener-robot-ci-3 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jun 17, 2024
Copy link
Member

@petersutter petersutter left a comment

Choose a reason for hiding this comment

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

minor findings, otherwise /lgtm

.vscode/settings.json Outdated Show resolved Hide resolved
scripts/debug.cjs Outdated Show resolved Hide resolved
Copy link
Contributor

@grolu grolu left a comment

Choose a reason for hiding this comment

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

/lgtm

@gardener-robot gardener-robot added reviewed/lgtm Has approval for merging and removed needs/review Needs review labels Jun 17, 2024
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jun 17, 2024
holgerkoser and others added 2 commits June 18, 2024 11:14
Co-authored-by: Peter Sutter <peter.sutter@sap.com>
@gardener-robot-ci-2 gardener-robot-ci-2 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jun 18, 2024
@holgerkoser holgerkoser merged commit 87cb207 into master Jun 18, 2024
8 checks passed
@holgerkoser holgerkoser deleted the enh/debug-vitest branch June 18, 2024 09:32
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Jun 18, 2024
holgerkoser added a commit that referenced this pull request Jun 26, 2024
* master: (169 commits)
  revert #1933 (#1937)
  Migrate GProjectDialog to script setup (#1934)
  Update connect-kubectl.md
  cancel on esc (#1933)
  fix project menu after vuetify update (#1929)
  Update dependency vuetify to v3.6.10 (#1927)
  Bump braces from 3.0.2 to 3.0.3 (#1922)
  Update dependency vite to v5.3.1 (#1920)
  Update dependency @braintree/sanitize-url to v7.0.3 (#1925)
  Update dependency vue to v3.4.29 (#1921)
  Update dependency jose to v5.4.1 (#1924)
  Update dependency sass to v1.77.6 (#1917)
  Update dependency vuetify to v3.6.9 (#1916)
  Update dependency @vueuse/router to v10.11.0 (#1914)
  Update dependency @vueuse/integrations to v10.11.0 (#1913)
  Update actions/checkout action to v4.1.7 (#1918)
  Update dependency @vueuse/core to v10.11.0 (#1912)
  Adapt the debug and test scripts for `vscode-jest-runner` to be compatible with Vitest. (#1923)
  Update dependency vue-router to v4.3.3 (#1907)
  Update Yarn to v4.3.0 (#1910)
  ...

# Conflicts:
#	.pnp.cjs
#	backend/lib/app.js
#	backend/lib/config/gardener.js
#	backend/lib/security/index.js
#	backend/lib/services/shoots.js
#	frontend/package.json
#	frontend/vite.config.js
#	yarn.lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) reviewed/lgtm Has approval for merging size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants