Skip to content

Commit 3e367e2

Browse files
committed
✏️ jestの設定修正
1 parent 69c76aa commit 3e367e2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

__mocks__/fileMock.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = 'test-file-stub';

jest.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ module.exports = {
22
preset: 'ts-jest',
33
testEnvironment: 'jsdom',
44
moduleNameMapper: {
5-
'^@/(.+)': '<rootDir>/src/$1'
5+
'^@/(.+)': '<rootDir>/src/$1',
6+
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
7+
'<rootDir>/__mocks__/fileMock.js'
68
},
79
moduleFileExtensions: ['js', 'ts', 'json', 'vue'],
810
transform: {

0 commit comments

Comments
 (0)