File tree 2 files changed +51
-27
lines changed
2 files changed +51
-27
lines changed Original file line number Diff line number Diff line change 32
32
- Node.js 17.x
33
33
- Node.js 18.x
34
34
- Node.js 19.x
35
+ - Node.js 20.x
36
+ - Node.js 21.x
37
+ - Node.js 22.x
35
38
36
39
include :
37
40
- name : Node.js 0.8
@@ -48,77 +51,86 @@ jobs:
48
51
npm-i : mocha@3.5.3 nyc@10.3.2 supertest@2.0.0
49
52
50
53
- name : io.js 1.x
51
- node-version : " 1.8 "
54
+ node-version : " 1"
52
55
npm-i : mocha@3.5.3 nyc@10.3.2 supertest@2.0.0
53
56
54
57
- name : io.js 2.x
55
- node-version : " 2.5 "
58
+ node-version : " 2"
56
59
npm-i : mocha@3.5.3 nyc@10.3.2 supertest@2.0.0
57
60
58
61
- name : io.js 3.x
59
- node-version : " 3.3 "
62
+ node-version : " 3"
60
63
npm-i : mocha@3.5.3 nyc@10.3.2 supertest@2.0.0
61
64
62
65
- name : Node.js 4.x
63
- node-version : " 4.9 "
66
+ node-version : " 4"
64
67
npm-i : mocha@5.2.0 nyc@11.9.0 supertest@3.4.2
65
68
66
69
- name : Node.js 5.x
67
- node-version : " 5.12 "
70
+ node-version : " 5"
68
71
npm-i : mocha@5.2.0 nyc@11.9.0 supertest@3.4.2
69
72
70
73
- name : Node.js 6.x
71
- node-version : " 6.17 "
74
+ node-version : " 6"
72
75
npm-i : mocha@6.2.2 nyc@14.1.1 supertest@6.1.6
73
76
74
77
- name : Node.js 7.x
75
- node-version : " 7.10 "
78
+ node-version : " 7"
76
79
npm-i : mocha@6.2.2 nyc@14.1.1 supertest@6.1.6
77
80
78
81
- name : Node.js 8.x
79
- node-version : " 8.17 "
80
- npm-i : mocha@7.2.0
82
+ node-version : " 8"
83
+ npm-i : mocha@7.2.0 nyc@14.1.1
81
84
82
85
- name : Node.js 9.x
83
- node-version : " 9.11 "
84
- npm-i : mocha@7.2.0
86
+ node-version : " 9"
87
+ npm-i : mocha@7.2.0 nyc@14.1.1
85
88
86
89
- name : Node.js 10.x
87
- node-version : " 10.24 "
90
+ node-version : " 10"
88
91
npm-i : mocha@8.4.0
89
92
90
93
- name : Node.js 11.x
91
- node-version : " 11.15 "
94
+ node-version : " 11"
92
95
npm-i : mocha@8.4.0
93
96
94
97
- name : Node.js 12.x
95
- node-version : " 12.22 "
98
+ node-version : " 12"
96
99
npm-i : mocha@9.2.2
97
100
98
101
- name : Node.js 13.x
99
- node-version : " 13.14 "
102
+ node-version : " 13"
100
103
npm-i : mocha@9.2.2
101
104
102
105
- name : Node.js 14.x
103
- node-version : " 14.21 "
106
+ node-version : " 14"
104
107
105
108
- name : Node.js 15.x
106
- node-version : " 15.14 "
109
+ node-version : " 15"
107
110
108
111
- name : Node.js 16.x
109
- node-version : " 16.19 "
112
+ node-version : " 16"
110
113
111
114
- name : Node.js 17.x
112
- node-version : " 17.9 "
115
+ node-version : " 17"
113
116
114
117
- name : Node.js 18.x
115
- node-version : " 18.14 "
118
+ node-version : " 18"
116
119
117
120
- name : Node.js 19.x
118
- node-version : " 19.7"
121
+ node-version : " 19"
122
+
123
+ - name : Node.js 20.x
124
+ node-version : " 20"
125
+
126
+ - name : Node.js 21.x
127
+ node-version : " 21"
128
+
129
+ - name : Node.js 22.x
130
+ node-version : " 22"
119
131
120
132
steps :
121
- - uses : actions/checkout@v3
133
+ - uses : actions/checkout@v4
122
134
123
135
- name : Install Node.js ${{ matrix.node-version }}
124
136
shell : bash -eo pipefail -l {0}
@@ -209,7 +221,7 @@ jobs:
209
221
needs : test
210
222
runs-on : ubuntu-latest
211
223
steps :
212
- - uses : actions/checkout@v3
224
+ - uses : actions/checkout@v4
213
225
214
226
- name : Install lcov
215
227
shell : bash
Original file line number Diff line number Diff line change @@ -73,13 +73,25 @@ describe('bodyParser()', function () {
73
73
} )
74
74
} )
75
75
76
+ function getMajorVersion ( versionString ) {
77
+ return versionString . split ( '.' ) [ 0 ]
78
+ }
79
+
80
+ function shouldSkipQuery ( versionString ) {
81
+ // Skipping HTTP QUERY tests on Node 21, it is reported in http.METHODS on 21.7.2 but not supported
82
+ // update this implementation to run on supported versions of 21 once they exist
83
+ // upstream tracking https://github.com/nodejs/node/issues/51562
84
+ // express tracking issue: https://github.com/expressjs/express/issues/5615
85
+ return getMajorVersion ( versionString ) === '21'
86
+ }
87
+
76
88
methods . slice ( ) . sort ( ) . forEach ( function ( method ) {
77
- if ( method === 'connect' ) {
78
- // except CONNECT
79
- return
80
- }
89
+ if ( method === 'connect' ) return
81
90
82
91
it ( 'should support ' + method . toUpperCase ( ) + ' requests' , function ( done ) {
92
+ if ( method === 'query' && shouldSkipQuery ( process . versions . node ) ) {
93
+ this . skip ( )
94
+ }
83
95
request ( this . server ) [ method ] ( '/' )
84
96
. set ( 'Content-Type' , 'application/json' )
85
97
. set ( 'Content-Length' , '15' )
You can’t perform that action at this time.
0 commit comments