Skip to content

Commit

Permalink
fix: 설정 오버로딩
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene028 committed Jul 20, 2024
1 parent da739a2 commit fc75fdc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
run: pnpm install --no-frozen-lockfile
working-directory: packages/wow-ui

- name: Install TypeScript
run: pnpm add typescript@^5.3.3
working-directory: packages/wow-ui

- name: Build Packages
run: pnpm build

Expand Down
9 changes: 9 additions & 0 deletions packages/wow-ui/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ import jestConfig from "shared-config/jest.config";
const config: Config = {
...jestConfig,
testEnvironment: "jsdom",
transform: {
"^.+\\.jsx?$": "babel-jest",
"^.+\\.tsx?$": [
"ts-jest",
{
tsconfig: "<rootDir>/tsconfig.json", // packages/wow-ui/tsconfig.json을 가리키게 함
},
],
},
};

export default config;
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"declarationMap": true,
"esModuleInterop": true,
"incremental": false,
"jsx": "react-jsx",
// "jsx": "react-jsx",
"isolatedModules": true,
"lib": ["es2022", "DOM", "DOM.Iterable"],
"module": "NodeNext",
Expand Down

0 comments on commit fc75fdc

Please sign in to comment.