@@ -9,10 +9,15 @@ import { CodeServer, CodeServerPage } from "./models/CodeServer"
99 *
1010 * If `includeCredentials` is `true` page requests will be authenticated.
1111 */
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+ ) => {
1318 test . describe ( name , ( ) => {
1419 // This will spawn on demand so nothing is necessary on before.
15- const codeServer = new CodeServer ( name )
20+ const codeServer = new CodeServer ( name , codeServerArgs )
1621
1722 // Kill code-server after the suite has ended. This may happen even without
1823 // doing it explicitly but it seems prudent to be sure.
@@ -36,6 +41,9 @@ export const describe = (name: string, includeCredentials: boolean, fn: (codeSer
3641 authenticated : includeCredentials ,
3742 // This provides a cookie that authenticates with code-server.
3843 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 ,
3947 } )
4048
4149 fn ( codeServer )
0 commit comments