-
Notifications
You must be signed in to change notification settings - Fork 11
test: add integration tests for the Vite plugin #245
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
Conversation
c615f28 to
58a119b
Compare
| .withFile( | ||
| 'vite.config.js', | ||
| `import { defineConfig } from 'vite'; | ||
| import netlify from '@netlify/vite-plugin'; | ||
| export default defineConfig({ | ||
| plugins: [ | ||
| netlify() | ||
| ] | ||
| });`, | ||
| ) |
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.
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.
63d6338 to
ee41ced
Compare
| root: directory, | ||
| }) | ||
|
|
||
| const response = await fetch(url) |
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.
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
No description provided.