From 0d1e044fb466c9b915af0491fd7b71e363c70a2b Mon Sep 17 00:00:00 2001 From: Carlos Santiago <5726971+csantiago132@users.noreply.github.com> Date: Thu, 3 Oct 2024 09:51:04 -0500 Subject: [PATCH] fix(config): adds .jpeg to jest mocks --- src/jest/jest.config.base.js | 2 +- src/semantic-release/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jest/jest.config.base.js b/src/jest/jest.config.base.js index 1faaf81..7b278b3 100644 --- a/src/jest/jest.config.base.js +++ b/src/jest/jest.config.base.js @@ -13,7 +13,7 @@ module.exports = { moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'], moduleNameMapper: { '\\.(css|less|scss|sass)$': 'identity-obj-proxy', - '\\.(gif|ttf|eot|png|svg)$': '/__mocks__/fileMock.js', + '\\.(gif|ttf|eot|png|jpg|jpeg|svg)$': '/__mocks__/fileMock.js', }, setupFilesAfterEnv: ['/jest.setup.js'], snapshotSerializers: ['@emotion/jest/serializer'], diff --git a/src/semantic-release/index.js b/src/semantic-release/index.js index 4acd463..e7e66ae 100644 --- a/src/semantic-release/index.js +++ b/src/semantic-release/index.js @@ -11,6 +11,7 @@ module.exports = { '@semantic-release/changelog', '@semantic-release/commit-analyzer', '@semantic-release/release-notes-generator', + '@semantic-release/github', [ 'semantic-release-github-pullrequest', { @@ -26,7 +27,6 @@ module.exports = { pullrequestTitle: 'chore(release): ${nextRelease.version}', }, ], - '@semantic-release/github', '@semantic-release/npm', ], };