Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TatianaFomina committed Dec 6, 2024
1 parent e86a023 commit 00fbac6
Show file tree
Hide file tree
Showing 4 changed files with 301 additions and 78 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
"eslint-config-codex": "1.2.4",
"eslint-plugin-import": "^2.19.1",
"jest": "^26.2.2",
"mongodb-memory-server": "^6.6.1",
"nodemon": "^2.0.2",
"ts-jest": "^26.1.4",
"ts-node": "^10.9.1",
"typescript": "^4.7.4"
"typescript": "^4.7.4",
"mongodb-memory-server": "9.5.0"
},
"dependencies": {
"@amplitude/node": "^1.10.0",
Expand Down
1 change: 1 addition & 0 deletions src/mongo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const connectionConfig: MongoClientOptions = {
*/
export async function setupConnections(): Promise<void> {
try {
console.log('hawkDBUrl', hawkDBUrl)

Check failure on line 66 in src/mongo.ts

View workflow job for this annotation

GitHub Actions / ESlint

Missing semicolon
const [hawkMongoClient, eventsMongoClient] = await Promise.all([
MongoClient.connect(hawkDBUrl, connectionConfig),
MongoClient.connect(eventsDBUrl, connectionConfig),
Expand Down
1 change: 0 additions & 1 deletion test/models/businessOperationsFactory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ beforeAll(async () => {
describe('Business operation factory', () => {

it('should create factory instance', () => {
console.log(mongo.databases.hawk)
const factory = new BusinessOperationsFactory(mongo.databases.hawk as Db, new DataLoaders(mongo.databases.hawk as Db));

expect(factory).not.toBe(undefined);
Expand Down
Loading

0 comments on commit 00fbac6

Please sign in to comment.