-
-
Notifications
You must be signed in to change notification settings - Fork 623
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests(serve): completed startDevServer tests
- Loading branch information
1 parent
97bd5f2
commit bf2f415
Showing
3 changed files
with
222 additions
and
9 deletions.
There are no files selected for viewing
84 changes: 84 additions & 0 deletions
84
packages/serve/__tests__/__snapshots__/startDevServer.test.ts.snap
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,84 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`startDevServer should set default port and host if not provided 1`] = ` | ||
Object { | ||
"host": "localhost", | ||
"port": 8080, | ||
} | ||
`; | ||
|
||
exports[`startDevServer should set default port and host if not provided 2`] = ` | ||
Array [ | ||
8080, | ||
"localhost", | ||
[Function], | ||
] | ||
`; | ||
|
||
exports[`startDevServer should start dev server correctly for multi compiler with 1 devServer config 1`] = ` | ||
Object { | ||
"bonjour": true, | ||
"host": "my.host", | ||
"hot": true, | ||
"port": 9000, | ||
"progress": true, | ||
} | ||
`; | ||
|
||
exports[`startDevServer should start dev server correctly for multi compiler with 1 devServer config 2`] = ` | ||
Array [ | ||
9000, | ||
"my.host", | ||
[Function], | ||
] | ||
`; | ||
|
||
exports[`startDevServer should start dev server correctly for single compiler 1`] = ` | ||
Object { | ||
"bonjour": true, | ||
"host": "my.host", | ||
"hot": true, | ||
"port": 9000, | ||
"progress": true, | ||
} | ||
`; | ||
|
||
exports[`startDevServer should start dev server correctly for single compiler 2`] = ` | ||
Array [ | ||
9000, | ||
"my.host", | ||
[Function], | ||
] | ||
`; | ||
|
||
exports[`startDevServer should start dev servers correctly for multi compiler with 2 devServer configs 1`] = ` | ||
Object { | ||
"host": "localhost", | ||
"port": 9000, | ||
"progress": true, | ||
} | ||
`; | ||
|
||
exports[`startDevServer should start dev servers correctly for multi compiler with 2 devServer configs 2`] = ` | ||
Object { | ||
"host": "localhost", | ||
"port": 9001, | ||
"progress": true, | ||
} | ||
`; | ||
|
||
exports[`startDevServer should start dev servers correctly for multi compiler with 2 devServer configs 3`] = ` | ||
Array [ | ||
9000, | ||
"localhost", | ||
[Function], | ||
] | ||
`; | ||
|
||
exports[`startDevServer should start dev servers correctly for multi compiler with 2 devServer configs 4`] = ` | ||
Array [ | ||
9001, | ||
"localhost", | ||
[Function], | ||
] | ||
`; |
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