File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1919    "purge" : " yarn clean && yarn clean:node && yarn run rimraf yarn.lock"  ,
2020    "test:leeway" : " yarn build && yarn test"  ,
2121    "test" : " yarn test:unit && yarn test:db"  ,
22-     "test:unit" : " mocha './**/*.js' --exclude './node_modules/**' --exit"  ,
22+     "test:unit" : " mocha './**/*.spec. js' --exclude './node_modules/**' --exit"  ,
2323    "test:db" : " cleanup() { echo 'Cleanup started'; yarn stop-services; }; trap cleanup EXIT; . $(leeway run components/gitpod-db:db-test-env) && yarn start-services && mocha './**/*.spec.db.js'  --exclude './node_modules/**' --exit"  ,
2424    "start-services" : " yarn start-testdb && yarn start-redis && yarn start-spicedb"  ,
2525    "stop-services" : " yarn stop-redis && yarn stop-spicedb"  ,
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import { HostContextProvider } from "../auth/host-context-provider";
1717import  {  Container ,  ContainerModule  }  from  "inversify" ; 
1818import  {  AzureDevOpsFileProvider  }  from  "../azure-devops/azure-file-provider" ; 
1919import  {  AzureDevOpsRepositoryProvider  }  from  "../azure-devops/azure-repository-provider" ; 
20+ import  {  Config  }  from  "../config" ; 
2021
2122export  namespace  DevData  { 
2223    export  function  createTestUser ( ) : User  { 
@@ -161,6 +162,7 @@ export namespace DevTestHelper {
161162        } ; 
162163        container . load ( 
163164            new  ContainerModule ( ( bind ,  unbind ,  isBound ,  rebind )  =>  { 
165+                 bind ( Config ) . toConstantValue ( { } ) ; 
164166                bind ( AzureDevOpsContextParser ) . toSelf ( ) . inSingletonScope ( ) ; 
165167                bind ( AzureDevOpsApi ) . toSelf ( ) . inSingletonScope ( ) ; 
166168                bind ( AuthProviderParams ) . toConstantValue ( AUTH_HOST_CONFIG ) ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments