@@ -145,11 +145,11 @@ describe('validateOptions', () => {
145145 } ) . toThrowErrorMatchingInlineSnapshot ( `
146146 "Invalid options object. React Refresh Plugin has been initialized using an options object that does not match the API schema.
147147 - options.overlay should be one of these:
148- boolean | object { entry?, module?, sockIntegration?, sockHost?, sockPath?, sockPort?, sockProtocol?, useLegacyWDSSockets?, useURLPolyfill? }
148+ boolean | object { entry?, module?, sockIntegration?, sockHost?, sockPath?, sockPort?, sockProtocol?, useURLPolyfill? }
149149 Details:
150150 * options.overlay should be a boolean.
151151 * options.overlay should be an object:
152- object { entry?, module?, sockIntegration?, sockHost?, sockPath?, sockPort?, sockProtocol?, useLegacyWDSSockets?, useURLPolyfill? }"
152+ object { entry?, module?, sockIntegration?, sockHost?, sockPath?, sockPort?, sockProtocol?, useURLPolyfill? }"
153153 ` ) ;
154154 } ) ;
155155
@@ -185,7 +185,7 @@ describe('validateOptions', () => {
185185 } ) . toThrowErrorMatchingInlineSnapshot ( `
186186 "Invalid options object. React Refresh Plugin has been initialized using an options object that does not match the API schema.
187187 - options.overlay should be one of these:
188- boolean | object { entry?, module?, sockIntegration?, sockHost?, sockPath?, sockPort?, sockProtocol?, useLegacyWDSSockets?, useURLPolyfill? }
188+ boolean | object { entry?, module?, sockIntegration?, sockHost?, sockPath?, sockPort?, sockProtocol?, useURLPolyfill? }
189189 Details:
190190 * options.overlay.entry should be one of these:
191191 false | string
@@ -227,7 +227,7 @@ describe('validateOptions', () => {
227227 } ) . toThrowErrorMatchingInlineSnapshot ( `
228228 "Invalid options object. React Refresh Plugin has been initialized using an options object that does not match the API schema.
229229 - options.overlay should be one of these:
230- boolean | object { entry?, module?, sockIntegration?, sockHost?, sockPath?, sockPort?, sockProtocol?, useLegacyWDSSockets?, useURLPolyfill? }
230+ boolean | object { entry?, module?, sockIntegration?, sockHost?, sockPath?, sockPort?, sockProtocol?, useURLPolyfill? }
231231 Details:
232232 * options.overlay.module should be one of these:
233233 false | string
@@ -293,7 +293,7 @@ describe('validateOptions', () => {
293293 } ) . toThrowErrorMatchingInlineSnapshot ( `
294294 "Invalid options object. React Refresh Plugin has been initialized using an options object that does not match the API schema.
295295 - options.overlay should be one of these:
296- boolean | object { entry?, module?, sockIntegration?, sockHost?, sockPath?, sockPort?, sockProtocol?, useLegacyWDSSockets?, useURLPolyfill? }
296+ boolean | object { entry?, module?, sockIntegration?, sockHost?, sockPath?, sockPort?, sockProtocol?, useURLPolyfill? }
297297 Details:
298298 * options.overlay.sockIntegration should be one of these:
299299 false | \\"wds\\" | \\"whm\\" | \\"wps\\" | string
@@ -409,33 +409,6 @@ describe('validateOptions', () => {
409409 ` ) ;
410410 } ) ;
411411
412- it ( 'should accept "overlay.useLegacyWDSSockets" when it is true' , ( ) => {
413- expect ( ( ) => {
414- new ReactRefreshPlugin ( {
415- overlay : { useLegacyWDSSockets : true } ,
416- } ) ;
417- } ) . not . toThrow ( ) ;
418- } ) ;
419-
420- it ( 'should accept "overlay.useLegacyWDSSockets" when it is false' , ( ) => {
421- expect ( ( ) => {
422- new ReactRefreshPlugin ( {
423- overlay : { useLegacyWDSSockets : false } ,
424- } ) ;
425- } ) . not . toThrow ( ) ;
426- } ) ;
427-
428- it ( 'should reject "overlay.useLegacyWDSSockets" when it is not a boolean' , ( ) => {
429- expect ( ( ) => {
430- new ReactRefreshPlugin ( {
431- overlay : { useLegacyWDSSockets : 1 } ,
432- } ) ;
433- } ) . toThrowErrorMatchingInlineSnapshot ( `
434- "Invalid options object. React Refresh Plugin has been initialized using an options object that does not match the API schema.
435- - options.overlay.useLegacyWDSSockets should be a boolean."
436- ` ) ;
437- } ) ;
438-
439412 it ( 'should reject any unknown options' , ( ) => {
440413 expect ( ( ) => {
441414 new ReactRefreshPlugin ( { unknown : true } ) ;
0 commit comments