-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: normalized signatures webpack & vite servers (#18379)
- Loading branch information
Barthélémy Ledoux
authored
Oct 14, 2021
1 parent
7aac450
commit 8f5308f
Showing
6 changed files
with
84 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* This file is intended to test the new normalized signature | ||
* of devServers. To make the test shorter we only test | ||
* the smkoke test here | ||
*/ | ||
|
||
const path = require('path') | ||
const { devServer, defineDevServerConfig } = require('../../dist') | ||
|
||
module.exports = (on, config) => { | ||
on('dev-server:start', async (options) => { | ||
return devServer( | ||
options, | ||
defineDevServerConfig({ | ||
configFile: path.resolve(__dirname, '..', '..', 'vite.config.ts'), | ||
}), | ||
) | ||
}) | ||
|
||
config.testFiles = '**/smoke.spec.ts' | ||
|
||
return config | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters