File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,19 @@ module.exports = {
24
24
test : {
25
25
cov : false ,
26
26
async before ( ) {
27
- return new MockServerController ( )
27
+ return {
28
+ env : {
29
+ MOCK_PINNING_SERVER_SECRET : 'ci' ,
30
+ } ,
31
+ controller : new MockServerController ( ) ,
32
+ }
28
33
} ,
29
34
/**
30
35
*
31
36
* @param {GlobalOptions & TestOptions } _
32
37
* @param {MockServerController } controller
33
38
*/
34
- async after ( _ , controller ) {
39
+ async after ( _ , { controller} ) {
35
40
await controller . shutdown ( )
36
41
}
37
42
}
Original file line number Diff line number Diff line change @@ -5,7 +5,13 @@ import portscanner from 'portscanner'
5
5
import cors from 'cors'
6
6
import { logger } from './logger'
7
7
8
- import ( 'dotenvrc' )
8
+ try {
9
+ import ( 'dotenvrc' )
10
+ } catch ( err ) {
11
+ // no dotenvrc.. that's okay
12
+ // eslint-disable-next-line no-console
13
+ console . warn ( 'No .envrc file found; assuming CI environment. If not: You should copy .envrc-copy and set your environment variables.' )
14
+ }
9
15
10
16
export class MockServer {
11
17
private _server : Server | undefined = undefined
You can’t perform that action at this time.
0 commit comments