Skip to content

SvelteKit: Support 2.0 modules with mocks#25244

Merged
JReinhold merged 6 commits intostorybookjs:nextfrom
paoloricciuti:new-sveltekit-modules
Dec 19, 2023
Merged

SvelteKit: Support 2.0 modules with mocks#25244
JReinhold merged 6 commits intostorybookjs:nextfrom
paoloricciuti:new-sveltekit-modules

Conversation

@paoloricciuti
Copy link
Contributor

@paoloricciuti paoloricciuti commented Dec 15, 2023

What I did

Added the newly introduced exports from $app/navigation to the importable and mockable functions in sveltekit.

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!

  1. Run a sandbox for template, e.g. yarn task --task sandbox --start-from auto --template svelte-kit/skeleton-ts
  2. Open Storybook in your browser
  3. Access the sveltekit/modules/navigation folder
  4. Click on replaceState or pushState button

-->

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/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-25244-sha-bd2cf8e0. Install it by pinning all your Storybook dependencies to that version.

More information
Published version 0.0.0-pr-25244-sha-bd2cf8e0
Triggered by @JReinhold
Repository paoloricciuti/storybook
Branch new-sveltekit-modules
Commit bd2cf8e0
Datetime Mon Dec 18 13:00:09 UTC 2023 (1702904409)
Workflow run 7248414421

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=25244

@socket-security
Copy link

socket-security bot commented Dec 15, 2023

No top level dependency changes detected. Learn more about Socket for GitHub ↗︎

@JReinhold JReinhold added feature request ci:daily Run the CI jobs that normally run in the daily job. sveltekit labels Dec 18, 2023
@JReinhold JReinhold self-assigned this Dec 18, 2023
Copy link
Contributor

@JReinhold JReinhold left a comment

Choose a reason for hiding this comment

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

Nice!

@JReinhold JReinhold changed the title SvelteKit: new modules exports mocks SvelteKit: Support 2.0 modules with mocks Dec 19, 2023
@JReinhold JReinhold merged commit aae68d4 into storybookjs:next Dec 19, 2023
@JReinhold JReinhold added the patch:yes Bugfix & documentation PR that need to be picked to main branch label Dec 19, 2023
JReinhold added a commit that referenced this pull request Dec 19, 2023
SvelteKit: Support 2.0 modules with mocks
(cherry picked from commit aae68d4)
@github-actions github-actions bot added the patch:done Patch/release PRs already cherry-picked to main/release branch label Dec 19, 2023
@ndelangen ndelangen removed the patch:yes Bugfix & documentation PR that need to be picked to main branch label Oct 28, 2025
@ndelangen ndelangen removed the patch:yes Bugfix & documentation PR that need to be picked to main branch label Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:daily Run the CI jobs that normally run in the daily job. feature request patch:done Patch/release PRs already cherry-picked to main/release branch sveltekit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants