Skip to content

Commit 0966ab8

Browse files
committed
test
1 parent daa5404 commit 0966ab8

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

src/builds/builds.service.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,9 @@ describe('BuildsService', () => {
386386
it('create with retry', async () => {
387387
const buildUpsertMock = jest
388388
.fn()
389-
.mockRejectedValueOnce(new Prisma.PrismaClientKnownRequestError('mock error', { code: 'P2002', clientVersion: '5' }));
389+
.mockRejectedValueOnce(
390+
new Prisma.PrismaClientKnownRequestError('mock error', { code: 'P2002', clientVersion: '5' })
391+
);
390392
const buildUpdateMock = jest.fn().mockResolvedValueOnce(build);
391393
service = await initService({ buildUpsertMock, buildUpdateMock });
392394
service.incrementBuildNumber = jest.fn().mockResolvedValueOnce(build);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ const initService = async ({ getImageMock = jest.fn(), saveImageMock = jest.fn()
2424
}).compile();
2525

2626
const service = module.get<PixelmatchService>(PixelmatchService);
27-
27+
2828
// Spy on loadPixelmatch to return our mock instead of dynamic import
2929
jest.spyOn(service as any, 'loadPixelmatch').mockResolvedValue(mockPixelmatch);
30-
30+
3131
return service;
3232
};
3333

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class PixelmatchService implements ImageComparator {
2828

2929
async getDiff(data: ImageCompareInput, config: PixelmatchConfig): Promise<DiffResult> {
3030
const pixelmatch = await this.loadPixelmatch();
31-
31+
3232
const result: DiffResult = {
3333
...NO_BASELINE_RESULT,
3434
};

src/jest.config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ module.exports = async () => {
77
transform: {
88
'^.+\\.(t|j)s$': 'ts-jest',
99
},
10-
transformIgnorePatterns: [
11-
'node_modules/(?!(pixelmatch)/)',
12-
],
10+
transformIgnorePatterns: ['node_modules/(?!(pixelmatch)/)'],
1311
coverageDirectory: '../coverage',
1412
testEnvironment: 'node',
1513
};

test/jest.config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ module.exports = async () => {
1010
transform: {
1111
...createDefaultPreset().transform,
1212
},
13-
transformIgnorePatterns: [
14-
'node_modules/(?!(pixelmatch)/)',
15-
],
13+
transformIgnorePatterns: ['node_modules/(?!(pixelmatch)/)'],
1614
coverageDirectory: '../coverage',
1715
testEnvironment: 'node',
1816
};

0 commit comments

Comments
 (0)