Skip to content

Commit

Permalink
Merge pull request #102 from woowacourse-teams/test/#101
Browse files Browse the repository at this point in the history
useMoimInfoInput훅 테스트, MoimInfoInput validate함수 테스트 작성
  • Loading branch information
jaeml06 authored Jul 25, 2024
2 parents f2a8280 + 34b4bf4 commit af3973f
Show file tree
Hide file tree
Showing 8 changed files with 9,730 additions and 5,435 deletions.
3 changes: 2 additions & 1 deletion frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
dist
*storybook.log
.env
.env
coverage
28 changes: 28 additions & 0 deletions frontend/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/configuration
*/

import type { Config } from 'jest';

const config: Config = {
preset: 'ts-jest',
clearMocks: true,
collectCoverage: true,
coverageDirectory: 'coverage',

testEnvironment: 'jest-environment-jsdom',
moduleNameMapper: {
'^@_apis/(.*)$': '<rootDir>/src/apis/$1',
'^@_constants/(.*)$': '<rootDir>/src/constants/$1',
'^@_common/(.*)$': '<rootDir>/src/common/$1',
'^@_components/(.*)$': '<rootDir>/src/components/$1',
'^@_hooks/(.*)$': '<rootDir>/src/hooks/$1',
'^@_layouts/(.*)$': '<rootDir>/src/layouts/$1',
'^@_pages/(.*)$': '<rootDir>/src/pages/$1',
'^@_types/(.*)$': '<rootDir>/src/types/$1',
'^@_utils/(.*)$': '<rootDir>/src/utils/$1',
},
};

export default config;
Loading

0 comments on commit af3973f

Please sign in to comment.