Skip to content

Commit

Permalink
【fix】UT
Browse files Browse the repository at this point in the history
  • Loading branch information
songyumeng committed Dec 8, 2023
1 parent 61ff639 commit 73de884
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ module.exports = {
'@i18n/(.*)$': '<rootDir>/src/common/$1',
'@leaflet/(.*)$': '<rootDir>/src/leaflet/$1',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/test/unit/assetsTransformer.js'
'<rootDir>/test/unit/assetsTransformer.js',
'^axios$': require.resolve('axios')
},
transform: {
'^.+\\.ts$': '<rootDir>/node_modules/ts-jest',
Expand All @@ -42,7 +43,7 @@ module.exports = {
'!mapboxgl/*/__tests__/**/type.{js,jsx}'
],
transformIgnorePatterns: [
'node_modules/(?!(mapbox-gl|element-ui|ant-design-vue|geographic-coordinate-converter|videojs-flvjs-es6|vue-videojs7|three)/)'
'node_modules/(?!(mapbox-gl|axios|element-ui|ant-design-vue|geographic-coordinate-converter|videojs-flvjs-es6|vue-videojs7|three)/)'
],
modulePaths: ['src', 'node_modules'],
reporters: ["default", "jest-teamcity"],
Expand Down

0 comments on commit 73de884

Please sign in to comment.