Skip to content

Commit db4a01b

Browse files
authored
Merge pull request #30 from wlgns5376/issue-12
feat: 라벨 기반 Base Branch 자동 설정 기능
2 parents 396d0df + df01bc4 commit db4a01b

29 files changed

Lines changed: 2420 additions & 2473 deletions

jest.config.js

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/** @type {import('jest').Config} */
22
module.exports = {
3+
preset: 'ts-jest',
34
testEnvironment: 'node',
45
roots: ['<rootDir>/src', '<rootDir>/tests'],
6+
setupFilesAfterEnv: ['<rootDir>/tests/setup.ts'],
7+
silent: true,
58
testMatch: [
69
'**/tests/**/*.test.ts',
710
'**/tests/**/*.spec.ts',
811
'**/__tests__/**/*.ts',
912
'**/?(*.)+(spec|test).ts'
1013
],
11-
transform: {
12-
'^.+\\.tsx?$': 'ts-jest',
13-
},
1414
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
1515
collectCoverageFrom: [
1616
'src/**/*.ts',
@@ -38,5 +38,27 @@ module.exports = {
3838
verbose: true,
3939
clearMocks: true,
4040
restoreMocks: true,
41-
forceExit: true
41+
forceExit: true,
42+
globals: {
43+
'ts-jest': {
44+
tsconfig: {
45+
target: 'ES2022',
46+
module: 'commonjs',
47+
lib: ['ES2022'],
48+
esModuleInterop: true,
49+
skipLibCheck: true,
50+
allowSyntheticDefaultImports: true,
51+
resolveJsonModule: true,
52+
moduleResolution: 'node',
53+
baseUrl: './',
54+
paths: {
55+
'@/*': ['src/*']
56+
},
57+
types: ['node', 'jest']
58+
}
59+
}
60+
},
61+
transformIgnorePatterns: [
62+
'node_modules/(?!(@octokit)/)'
63+
]
4264
};

0 commit comments

Comments
 (0)