Skip to content

Commit 7a47481

Browse files
authored
Use mocked from jest-mock instead of ts-jest, since it was moved (#201)
1 parent 441486f commit 7a47481

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/builds/builds.service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { PrismaService } from '../prisma/prisma.service';
44
import { TestRunsService } from '../test-runs/test-runs.service';
55
import { EventsGateway } from '../shared/events/events.gateway';
66
import { Build, TestRun, TestStatus } from '@prisma/client';
7-
import { mocked } from 'ts-jest/utils';
7+
import { mocked } from 'jest-mock';
88
import { BuildDto } from './dto/build.dto';
99
import { ProjectsService } from '../projects/projects.service';
1010
import { generateTestRun } from '../_data_';

src/compare/libs/pixelmatch/pixelmatch.service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { TestingModule, Test } from '@nestjs/testing';
22
import { TestStatus } from '@prisma/client';
33
import Pixelmatch from 'pixelmatch';
44
import { PNG } from 'pngjs';
5-
import { mocked } from 'ts-jest/utils';
5+
import { mocked } from 'jest-mock';
66
import { StaticService } from '../../../shared/static/static.service';
77
import { DIFF_DIMENSION_RESULT, EQUAL_RESULT, NO_BASELINE_RESULT } from '../consts';
88
import { DEFAULT_CONFIG, PixelmatchService } from './pixelmatch.service';

src/test-runs/test-runs.service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { mocked } from 'ts-jest/utils';
1+
import { mocked } from 'jest-mock';
22
import { Test, TestingModule } from '@nestjs/testing';
33
import { TestRunsService } from './test-runs.service';
44
import { PrismaService } from '../prisma/prisma.service';

0 commit comments

Comments
 (0)