@@ -980,7 +980,19 @@ describe('createConfig', () => {
980
980
expect ( config ) . toMatchSnapshot ( ) ;
981
981
} ) ;
982
982
983
- it ( 'overlay' , ( ) => {
983
+ it ( 'overlay option' , ( ) => {
984
+ const config = createConfig (
985
+ webpackConfig ,
986
+ Object . assign ( { } , argv , {
987
+ overlay : true ,
988
+ } ) ,
989
+ { port : 8080 }
990
+ ) ;
991
+
992
+ expect ( config ) . toMatchSnapshot ( ) ;
993
+ } ) ;
994
+
995
+ it ( 'overlay option (in devServer config)' , ( ) => {
984
996
const config = createConfig (
985
997
Object . assign ( { } , webpackConfig , {
986
998
devServer : { overlay : true } ,
@@ -991,4 +1003,64 @@ describe('createConfig', () => {
991
1003
992
1004
expect ( config ) . toMatchSnapshot ( ) ;
993
1005
} ) ;
1006
+
1007
+ it ( 'sockHost option' , ( ) => {
1008
+ const config = createConfig (
1009
+ webpackConfig ,
1010
+ Object . assign ( { } , argv , {
1011
+ sockHost : true ,
1012
+ } ) ,
1013
+ { port : 8080 }
1014
+ ) ;
1015
+
1016
+ expect ( config ) . toMatchSnapshot ( ) ;
1017
+ } ) ;
1018
+
1019
+ it ( 'sockPath option' , ( ) => {
1020
+ const config = createConfig (
1021
+ webpackConfig ,
1022
+ Object . assign ( { } , argv , {
1023
+ sockPath : 'path' ,
1024
+ } ) ,
1025
+ { port : 8080 }
1026
+ ) ;
1027
+
1028
+ expect ( config ) . toMatchSnapshot ( ) ;
1029
+ } ) ;
1030
+
1031
+ it ( 'sockPort option' , ( ) => {
1032
+ const config = createConfig (
1033
+ webpackConfig ,
1034
+ Object . assign ( { } , argv , {
1035
+ sockPort : 'port' ,
1036
+ } ) ,
1037
+ { port : 8080 }
1038
+ ) ;
1039
+
1040
+ expect ( config ) . toMatchSnapshot ( ) ;
1041
+ } ) ;
1042
+
1043
+ it ( 'liveReload option' , ( ) => {
1044
+ const config = createConfig (
1045
+ webpackConfig ,
1046
+ Object . assign ( { } , argv , {
1047
+ liveReload : false ,
1048
+ } ) ,
1049
+ { port : 8080 }
1050
+ ) ;
1051
+
1052
+ expect ( config ) . toMatchSnapshot ( ) ;
1053
+ } ) ;
1054
+
1055
+ it ( 'profile option' , ( ) => {
1056
+ const config = createConfig (
1057
+ webpackConfig ,
1058
+ Object . assign ( { } , argv , {
1059
+ profile : 'profile' ,
1060
+ } ) ,
1061
+ { port : 8080 }
1062
+ ) ;
1063
+
1064
+ expect ( config ) . toMatchSnapshot ( ) ;
1065
+ } ) ;
994
1066
} ) ;
0 commit comments