Skip to content

Commit

Permalink
fix: ci unit test fail when use @qwqui/tools
Browse files Browse the repository at this point in the history
  • Loading branch information
GaoNeng-wWw committed Oct 6, 2024
1 parent d5b07b4 commit c17abf3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@

module.exports = {
verbose: true,
testEnvironment: 'jsdom',
collectCoverageFrom: ['packages/components/**/*.{ts,tsx}'],
moduleFileExtensions: ['tsx', 'ts', 'js', 'jsx'],
modulePathIgnorePatterns: ['packages/build'],
modulePathIgnorePatterns: ['packages/build', 'packages/tools'],
transformIgnorePatterns: ["[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"],
transform: {
'^.+\\.(t|j)sx?$': [
Expand All @@ -18,10 +17,11 @@ module.exports = {
}
}
}
]
],
},
moduleNameMapper: {
"^.+\\.(css|less|scss)$": "babel-jest"
"^.+\\.(css|less|scss)$": "babel-jest",
"@qwqui/tools": "<rootDir>/packages/tools"
},
setupFilesAfterEnv: ['./setup.ts', "@testing-library/jest-dom"],
globals: {
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"@qwqui/build": [
"./packages/build"
],
"@qwqui/tools": [
"./packages/tools/index.ts"
],
"@qwqui/*": [
"./packages/components/*"
],
Expand Down

0 comments on commit c17abf3

Please sign in to comment.