Skip to content

Commit

Permalink
(chore): update message queue test
Browse files Browse the repository at this point in the history
  • Loading branch information
belovetech committed Sep 26, 2023
1 parent a4a37f9 commit d67ba8c
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 34 deletions.
19 changes: 19 additions & 0 deletions packages/shared-libs/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
env: {
es2021: true,
node: true,
},
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 13,
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
rules: {
indent: ['error', 2],
semi: ['error', 'always'],
'linebreak-style': ['error', 'unix'],
// quotes: ['error', 'double'],
},
};
2 changes: 1 addition & 1 deletion packages/shared-libs/__tests__/message.queue.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe(
() => {
let messageQueue: MessageQueue;

beforeAll(() => {
beforeAll(async () => {
messageQueue = new MessageQueue('amqp://localhost');
});

Expand Down
2 changes: 1 addition & 1 deletion packages/shared-libs/dist/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

32 changes: 0 additions & 32 deletions packages/shared-libs/src/message.queue.test.ts

This file was deleted.

1 change: 1 addition & 0 deletions packages/shared-libs/src/message.queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export default class MessageQueue {
}

public async getMessage(): Promise<unknown> {
// eslint-disable-next-line no-async-promise-executor
return new Promise(async (resolve, reject) => {
try {
await this.queue.activateConsumer((message) => {
Expand Down
1 change: 1 addition & 0 deletions packages/shared-libs/src/postgresClient.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { Sequelize } from 'sequelize-typescript';
import { logger, DB } from './index';

Expand Down
1 change: 1 addition & 0 deletions packages/shared-libs/src/validateDto.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { validate } from 'class-validator';

interface ValidatorResponse {
Expand Down

0 comments on commit d67ba8c

Please sign in to comment.