Skip to content

Commit 588d654

Browse files
author
Artem
committed
#RI-4935 fix + speedup tests
1 parent f9fdff7 commit 588d654

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

redisinsight/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"start:prod": "cross-env NODE_ENV=production BUILD_TYPE=DOCKER_ON_PREMISE node dist/src/main",
2828
"test": "cross-env NODE_ENV=test ./node_modules/.bin/jest -w 1",
2929
"test:watch": "cross-env NODE_ENV=test jest --watch -w 1",
30-
"test:cov": "cross-env NODE_ENV=test ./node_modules/.bin/jest --forceExit --coverage -w 1",
30+
"test:cov": "cross-env NODE_ENV=test ./node_modules/.bin/jest --forceExit --coverage -w 4",
3131
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand -w 1",
3232
"test:e2e": "jest --config ./test/jest-e2e.json -w 1",
3333
"typeorm": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js -d ./config/ormconfig.ts",

redisinsight/api/src/modules/cloud/job/transformers/cloud-job-data.transformer.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ import { TypeHelpOptions } from 'class-transformer';
33
import { CreateDatabaseCloudJobDataDto } from 'src/modules/cloud/job/dto/create-database.cloud-job.data.dto';
44
import { CloudJobName } from 'src/modules/cloud/job/constants';
55
import {
6-
CreateSubscriptionAndDatabaseCloudJobDataDto
6+
CreateSubscriptionAndDatabaseCloudJobDataDto,
77
} from 'src/modules/cloud/job/dto/create-subscription-and-database.cloud-job.data.dto';
8+
import { ImportDatabaseCloudJobDataDto } from 'src/modules/cloud/job/dto/import-database.cloud-job.data.dto';
89

910
export const cloudJobDataTransformer = (data: TypeHelpOptions) => {
1011
const jobName = get(data?.object, 'name');
1112

1213
switch (jobName) {
14+
case CloudJobName.ImportFreeDatabase:
15+
return ImportDatabaseCloudJobDataDto;
1316
case CloudJobName.CreateFreeDatabase:
1417
return CreateDatabaseCloudJobDataDto;
1518
case CloudJobName.CreateFreeSubscription:

0 commit comments

Comments
 (0)