Skip to content

Commit f7ce943

Browse files
committed
Fix tests
1 parent 7b1287b commit f7ce943

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

components/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
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",

components/server/src/dev/dev-data.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { HostContextProvider } from "../auth/host-context-provider";
1717
import { Container, ContainerModule } from "inversify";
1818
import { AzureDevOpsFileProvider } from "../azure-devops/azure-file-provider";
1919
import { AzureDevOpsRepositoryProvider } from "../azure-devops/azure-repository-provider";
20+
import { Config } from "../config";
2021

2122
export 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);

0 commit comments

Comments
 (0)