File tree 2 files changed +26
-0
lines changed
2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ const express = require('express');
6
6
const WebSocket = require ( 'ws' ) ;
7
7
const helper = require ( './helper' ) ;
8
8
const config = require ( './fixtures/proxy-config/webpack.config' ) ;
9
+ const shouldSkipTestSuite = require ( './shouldSkipTestSuite' ) ;
9
10
10
11
const WebSocketServer = WebSocket . Server ;
11
12
const contentBase = path . join ( __dirname , 'fixtures/proxy-config' ) ;
@@ -62,6 +63,11 @@ function startProxyServers() {
62
63
}
63
64
64
65
describe ( 'Proxy' , ( ) => {
66
+ // issue: https://github.com/webpack/webpack-dev-server/pull/1633#issuecomment-463938675
67
+ if ( shouldSkipTestSuite ( ) ) {
68
+ return ;
69
+ }
70
+
65
71
describe ( 'proxy options is a object' , ( ) => {
66
72
let server ;
67
73
let req ;
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ const semver = require ( 'semver' ) ;
4
+
5
+ // issue: https://github.com/nodejs/node/issues/24835
6
+ function shouldSkipTestSuite ( ) {
7
+ if (
8
+ semver . satisfies ( process . version , '11' ) &&
9
+ process . platform === 'darwin'
10
+ ) {
11
+ it ( 'skip' , ( ) => {
12
+ expect ( true ) . toBeTruthy ( ) ;
13
+ } ) ;
14
+
15
+ return true ;
16
+ }
17
+ return false ;
18
+ }
19
+
20
+ module . exports = shouldSkipTestSuite ;
You can’t perform that action at this time.
0 commit comments