-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feat: Assign ports per-app for integration tests #13338
base: main
Are you sure you want to change the base?
feat: Assign ports per-app for integration tests #13338
Conversation
|
preview: https://svelte-dev-git-preview-kit-13338-svelte.vercel.app/ this is an automated message |
d6b4cb0
to
a0f8972
Compare
export type CustomTestType = TestType< | ||
PlaywrightTestArgs & | ||
PlaywrightTestOptions & { | ||
app: { | ||
goto(url: string, opts?: { replaceState?: boolean }): Promise<void>; | ||
invalidate(url: string): Promise<void>; | ||
beforeNavigate(url: URL): void | boolean; | ||
afterNavigate(url: URL): void; | ||
beforeNavigate(callback: () => void): void; | ||
afterNavigate(callback: () => void): void; | ||
preloadCode(pathname: string): Promise<void>; | ||
preloadData(url: string): Promise<void>; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure there are types here that are just straight up not correct
webServer: { | ||
command: process.env.DEV ? 'pnpm dev --force' : 'pnpm build && pnpm preview', | ||
port: process.env.DEV ? 5173 : 4173 | ||
export const app_ports = /** @type {const} */ { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to figure out how to assign these fully-dynamically at runtime, but didn't have any ideas that sounded very good
I was just experimenting with some test stuff, no need to worry
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm test
and lint the project withpnpm lint
andpnpm check
Changesets
pnpm changeset
and following the prompts. Changesets that add features should beminor
and those that fix bugs should bepatch
. Please prefix changeset messages withfeat:
,fix:
, orchore:
.Edits