Skip to content

fix: move e2e tests beside the page - #919

Merged
manuel3108 merged 8 commits into
sveltejs:mainfrom
wyMinLwin:fix/e2e-types-checked
Mar 6, 2026
Merged

manuel3108 merged 8 commits into
sveltejs:mainfrom
wyMinLwin:fix/e2e-types-checked

Conversation

@wyMinLwin

@wyMinLwin wyMinLwin commented Feb 9, 2026 •

Copy link
Copy Markdown
Contributor

Closes: #914

I just simply renamed e2e/ directory to tests/ and updated playwright.config.ts testDir accordingly

@changeset-bot

changeset-bot Bot commented Feb 9, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 76510ef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
sv Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jycouet

jycouet commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

I think that like this there is a confusion between files for Playwright and the one for Vitest.

@wyMinLwin

Copy link
Copy Markdown
Contributor Author

so "Include it via the SvelteKit typescript config option" would be ok ?

 kit: {
    typescript: {
      config: (config) => {
        config.include = [...config.include, '../e2e/**/*.ts'];
      }
    }
  }

@wyMinLwin

Copy link
Copy Markdown
Contributor Author

Hope you could review new approach

@teemingc teemingc added the pkg:create sv create label Feb 11, 2026
@jycouet

jycouet commented Feb 11, 2026

Copy link
Copy Markdown
Contributor

I'll look Friday

@pkg-pr-new

pkg-pr-new Bot commented Feb 13, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npx https://pkg.pr.new/sveltejs/cli/svelte-migrate@919
npx https://pkg.pr.new/sveltejs/cli/sv@919
npx https://pkg.pr.new/sveltejs/cli/@sveltejs/sv-utils@919

commit: 1768b46

@jycouet

jycouet commented Feb 13, 2026

Copy link
Copy Markdown
Contributor

@wyMinLwin , what do you think about this?

@wyMinLwin

Copy link
Copy Markdown
Contributor Author

@jycouet really great! I think it's cleaner and better

@jycouet jycouet changed the title fix: move e2e to tests fix: move e2e tests beside the page Feb 13, 2026
@jycouet

jycouet commented Feb 15, 2026

Copy link
Copy Markdown
Contributor

FYI: we are thinking what is the best... And maybe not like this right now!
We still have the original issue in mind... Let's see how to fix it 👍

@svelte-docs-bot

Copy link
Copy Markdown

@sacrosanctic

sacrosanctic commented Mar 1, 2026 •

Copy link
Copy Markdown
Contributor
files
unit .{test}.{js,ts}
e2e .e2e.test.{js,ts}

what about naming them all *.test.js

@jycouet

jycouet commented Mar 1, 2026

Copy link
Copy Markdown
Contributor

files
unit .{test}.{js,ts}
e2e .e2e.test.{js,ts}
what about naming them all *.test.js

Like this, vitest will pick e2e tests and fail.

@manuel3108 manuel3108 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Given the circumstances, I think this is the best solution we can currently find.

Comment thread .changeset/ninety-taxis-beg.md Resolved
@manuel3108
manuel3108 merged commit 2898103 into sveltejs:main Mar 6, 2026
@github-actions github-actions Bot mentioned this pull request Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg:create sv create

Projects

None yet

Development

Successfully merging this pull request may close these issues.

e2e folder in SvelteKit template isn't type-checked

5 participants