@@ -9,10 +9,15 @@ import { CodeServer, CodeServerPage } from "./models/CodeServer"
9
9
*
10
10
* If `includeCredentials` is `true` page requests will be authenticated.
11
11
*/
12
- export const describe = ( name : string , includeCredentials : boolean , fn : ( codeServer : CodeServer ) => void ) => {
12
+ export const describe = (
13
+ name : string ,
14
+ includeCredentials : boolean ,
15
+ codeServerArgs : string [ ] ,
16
+ fn : ( codeServer : CodeServer ) => void ,
17
+ ) => {
13
18
test . describe ( name , ( ) => {
14
19
// This will spawn on demand so nothing is necessary on before.
15
- const codeServer = new CodeServer ( name )
20
+ const codeServer = new CodeServer ( name , codeServerArgs )
16
21
17
22
// Kill code-server after the suite has ended. This may happen even without
18
23
// doing it explicitly but it seems prudent to be sure.
@@ -36,6 +41,9 @@ export const describe = (name: string, includeCredentials: boolean, fn: (codeSer
36
41
authenticated : includeCredentials ,
37
42
// This provides a cookie that authenticates with code-server.
38
43
storageState : includeCredentials ? storageState : { } ,
44
+ // NOTE@jsjoeio some tests use --cert which uses a self-signed certificate
45
+ // without this option, those tests will fail.
46
+ ignoreHTTPSErrors : true ,
39
47
} )
40
48
41
49
fn ( codeServer )
0 commit comments