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

Addon Test: Use correct vitest config file path #30135

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

kasperpeulen
Copy link
Contributor

@kasperpeulen kasperpeulen commented Dec 24, 2024

Closes #

What I did

Checklist for Contributors

Testing

The changes in this PR are covered in the following automated tests:

  • stories
  • unit tests
  • integration tests
  • end-to-end tests

Manual testing

This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!

Documentation

  • Add or update documentation reflecting your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Checklist for Maintainers

  • When this PR is ready for testing, make sure to add ci:normal, ci:merged or ci:daily GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found in code/lib/cli-storybook/src/sandbox-templates.ts

  • Make sure this PR contains one of the labels below:

    Available labels
    • bug: Internal changes that fixes incorrect behavior.
    • maintenance: User-facing maintenance tasks.
    • dependencies: Upgrading (sometimes downgrading) dependencies.
    • build: Internal-facing build tooling & test updates. Will not show up in release changelog.
    • cleanup: Minor cleanup style change. Will not show up in release changelog.
    • documentation: Documentation only changes. Will not show up in release changelog.
    • feature request: Introducing a new feature.
    • BREAKING CHANGE: Changes that break compatibility in some way with current major version.
    • other: Changes that don't fit in the above categories.

🦋 Canary release

This pull request has been released as version 0.0.0-pr-30135-sha-0f78a4ff. Try it out in a new sandbox by running npx storybook@0.0.0-pr-30135-sha-0f78a4ff sandbox or in an existing project with npx storybook@0.0.0-pr-30135-sha-0f78a4ff upgrade.

More information
Published version 0.0.0-pr-30135-sha-0f78a4ff
Triggered by @kasperpeulen
Repository storybookjs/storybook
Branch kasper/correct-vitest-file
Commit 0f78a4ff
Datetime Tue Dec 24 10:46:02 UTC 2024 (1735037162)
Workflow run 12480667114

To request a new release of this pull request, mention the @storybookjs/core team.

core team members can create a new canary release here or locally with gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=30135

name before after diff z %
createSize 0 B 0 B 0 B - -
generateSize 77.8 MB 77.8 MB 0 B 1.33 0%
initSize 143 MB 143 MB 0 B 1.18 0%
diffSize 65.6 MB 65.6 MB 0 B 1.18 0%
buildSize 7.19 MB 7.19 MB 0 B -0.88 0%
buildSbAddonsSize 1.85 MB 1.85 MB 0 B -0.72 0%
buildSbCommonSize 195 kB 195 kB 0 B - 0%
buildSbManagerSize 1.87 MB 1.87 MB 0 B 0.23 0%
buildSbPreviewSize 0 B 0 B 0 B - -
buildStaticSize 0 B 0 B 0 B - -
buildPrebuildSize 3.92 MB 3.92 MB 0 B -0.73 0%
buildPreviewSize 3.28 MB 3.28 MB 0 B -0.9 0%
testBuildSize 0 B 0 B 0 B - -
testBuildSbAddonsSize 0 B 0 B 0 B - -
testBuildSbCommonSize 0 B 0 B 0 B - -
testBuildSbManagerSize 0 B 0 B 0 B - -
testBuildSbPreviewSize 0 B 0 B 0 B - -
testBuildStaticSize 0 B 0 B 0 B - -
testBuildPrebuildSize 0 B 0 B 0 B - -
testBuildPreviewSize 0 B 0 B 0 B - -
name before after diff z %
createTime 7.2s 23.4s 16.2s 1.7 🔺69.2%
generateTime 21.1s 20.1s -947ms -0.43 -4.7%
initTime 14.6s 18.1s 3.4s 2.22 🔺19%
buildTime 11.5s 8.3s -3s -203ms -1.27 🔰-38.5%
testBuildTime 0ms 0ms 0ms - -
devPreviewResponsive 5.5s 4.8s -747ms -0.53 -15.5%
devManagerResponsive 4.1s 3.6s -419ms -0.44 -11.4%
devManagerHeaderVisible 755ms 539ms -216ms -0.79 -40.1%
devManagerIndexVisible 799ms 550ms -249ms -0.86 -45.3%
devStoryVisibleUncached 2s 1.9s -122ms 0.04 -6.2%
devStoryVisible 800ms 571ms -229ms -0.8 -40.1%
devAutodocsVisible 711ms 566ms -145ms -0.07 -25.6%
devMDXVisible 577ms 483ms -94ms -0.7 -19.5%
buildManagerHeaderVisible 595ms 625ms 30ms -0.1 4.8%
buildManagerIndexVisible 682ms 726ms 44ms -0.08 6.1%
buildStoryVisible 575ms 604ms 29ms -0.08 4.8%
buildAutodocsVisible 562ms 481ms -81ms -0.25 -16.8%
buildMDXVisible 545ms 531ms -14ms 0.32 -2.6%

Greptile Summary

Based on the provided information, I'll create a concise summary of the pull request changes:

Fixed incorrect variable name reference in Storybook addon-test's postinstall script to display accurate error messages about existing Vitest configurations.

  • Changed error message template in code/addons/test/src/postinstall.ts to use viteConfigFile instead of vitestWorkspaceFile
  • Improves error message accuracy when warning users about existing test configurations
  • Helps users better understand their Vitest configuration state during installation

The change is focused and straightforward, improving the user experience by providing more accurate error messaging during the addon installation process.

@kasperpeulen kasperpeulen requested a review from yannbf December 24, 2024 10:35
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

LGTM

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Copy link

nx-cloud bot commented Dec 24, 2024

View your CI Pipeline Execution ↗ for commit 0f78a4f.

Command Status Duration Result
nx run-many -t build -c production --parallel=3 ✅ Succeeded 21s View ↗
nx affected -t check -c production --parallel=7 ✅ Succeeded 5s View ↗

☁️ Nx Cloud last updated this comment at 2024-12-24 10:46:34 UTC

@kasperpeulen kasperpeulen changed the title Addon-Test: Use correct vitest config file path Addon Test: Use correct vitest config file path Dec 24, 2024
@yannbf yannbf merged commit 056d615 into next Dec 24, 2024
71 of 74 checks passed
@yannbf yannbf deleted the kasper/correct-vitest-file branch December 24, 2024 14:54
@github-actions github-actions bot mentioned this pull request Dec 24, 2024
8 tasks
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.

3 participants