Skip to content

Commit

Permalink
refac(storybook): storybook최적화
Browse files Browse the repository at this point in the history
  • Loading branch information
KimKyuHoi committed Dec 13, 2024
1 parent b60c991 commit 974f3a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ nodeLinker: pnp
pnpMode: strict
enableGlobalCache: false

compressionLevel: 0 # 더 빠른 압축
enableMirror: true # 미러 캐시 활성화

npmPublishRegistry: 'https://registry.npmjs.org'
npmRegistryServer: 'https://registry.npmjs.org'

Expand Down
6 changes: 1 addition & 5 deletions packages/ui/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ function getAbsolutePath(value: string): any {
}
const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
getAbsolutePath('@storybook/addon-essentials'),
getAbsolutePath('@chromatic-com/storybook'),
getAbsolutePath('@storybook/addon-interactions'),
],
addons: [getAbsolutePath('@storybook/addon-essentials'), getAbsolutePath('@chromatic-com/storybook')],
framework: {
name: getAbsolutePath('@storybook/react-vite'),
options: {},
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export default {
'^.+\\.(ts|tsx)$': ['ts-jest'],
'\\.css$': 'jest-transform-css'
},
maxWorkers: 4,
verbose: true,
collectCoverage: true,
coverageDirectory: 'coverage',
coverageReporters: ['json-summary', 'text', 'lcov'],
Expand Down

0 comments on commit 974f3a5

Please sign in to comment.