Skip to content

Conversation

@serhalp
Copy link
Member

@serhalp serhalp commented May 30, 2025

No description provided.

@serhalp serhalp force-pushed the test/plugin-integration-test branch 4 times, most recently from c615f28 to 58a119b Compare May 30, 2025 19:39
Comment on lines 64 to 175
.withFile(
'vite.config.js',
`import { defineConfig } from 'vite';
import netlify from '@netlify/vite-plugin';
export default defineConfig({
plugins: [
netlify()
]
});`,
)
Copy link
Member Author

Choose a reason for hiding this comment

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

There was also the option of programmatically passing in the actual plugin to createServer, but I felt like this was an even more end-to-end integration test, behaving like a user.

@serhalp serhalp marked this pull request as ready for review May 30, 2025 19:45
@serhalp serhalp requested a review from a team as a code owner May 30, 2025 19:45
@serhalp serhalp requested review from a team and removed request for a team May 30, 2025 19:46
mrstork
mrstork previously approved these changes May 30, 2025
@serhalp serhalp requested review from eduardoboucas and mrstork May 30, 2025 21:14
@serhalp serhalp changed the title test: add a happy path integration test for the Vite plugin test: add integration tests for the Vite plugin May 30, 2025
@serhalp serhalp force-pushed the test/plugin-integration-test branch from 63d6338 to ee41ced Compare June 2, 2025 16:27
root: directory,
})

const response = await fetch(url)
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: all these fetch calls are replaced with playwright page.goto() calls in a follow-up PR, so we can ensure the rendered pages actually fully work end-to-end

@serhalp serhalp enabled auto-merge (squash) June 2, 2025 16:56
@serhalp serhalp merged commit 041bcee into main Jun 2, 2025
10 checks passed
@serhalp serhalp deleted the test/plugin-integration-test branch June 2, 2025 16:59
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.

4 participants