Skip to content

Comments

chore(ui): fix static ui client types#7201

Merged
sheremet-va merged 5 commits intomainfrom
userquin/chore-fix-static-ui-client-types
Jan 12, 2025
Merged

chore(ui): fix static ui client types#7201
sheremet-va merged 5 commits intomainfrom
userquin/chore-fix-static-ui-client-types

Conversation

@userquin
Copy link
Member

@userquin userquin commented Jan 9, 2025

Description

The static module doesn't include the new rerunTask added to run individual tests in the new UI, and the openPromise not being initialized (Variable openPromise is used before being assigned.).

This PR also includes:

  • html reporter script in test/core and test/browser
  • add test/core/html and test/browser/html to .gitignore
  • include packages/ui/client folder in tsc typecheck script: fixed failing modules

FIXED: We need to check why running the html reporter on test/browser doesn't generate the html folder, it is generating the app inside the test/browser folder. using json reporter and outputFile: './browser.json

I'm going to send 2 new PR for:

  • fix html reporter output folder when running browser mode
  • use vue-tsc to validate also vue files in packages/ui/client

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
  • Ideally, include a test that fails without this PR but passes with it.
  • Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.

Tests

  • Run the tests with pnpm test:ci.

Documentation

  • If you introduce new functionality, document it. You can run documentation with pnpm run docs command.

Changesets

  • Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.

@netlify
Copy link

netlify bot commented Jan 11, 2025

Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit 3f021f8
🔍 Latest deploy log https://app.netlify.com/sites/vitest-dev/deploys/678297c11ab87d0008428e31
😎 Deploy Preview https://deploy-preview-7201--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

diff: './custom-diff-config.ts',
outputFile: './browser.json',
reporters: ['json', {
outputFile,
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand why this needs to be conditional when we support objects if you use several reporters:

outputFile: {
  html: './html/index.html',
  json: './browser.json'
}

@sheremet-va sheremet-va merged commit a942ea7 into main Jan 12, 2025
13 checks passed
@sheremet-va sheremet-va deleted the userquin/chore-fix-static-ui-client-types branch January 12, 2025 17:54
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