Fix tests for Common-UI components [ch83967]

pull/15704/head
Raúl Yeguas 4 years ago
parent d83a9924b8
commit 39de3ea7cc

@ -42,7 +42,7 @@ module.exports = {
'.*\\.(vue)$': '<rootDir>/node_modules/vue-jest'
},
transformIgnorePatterns: [
'node_modules/(?!(internal-carto.js)/)'
'node_modules/(?!(internal-carto.js|@carto\/common-ui)/)'
],
silent: true,
snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'],

@ -24,7 +24,8 @@ describe('NavigationBar.vue', () => {
mocks: {
$router: {
resolve: href => href
}
},
$t: key => key
},
localVue
});

@ -73,8 +73,8 @@ exports[`NavigationBar.vue should render regular navbar with user dropdown close
<div class="navbar-user">
<div class="navbar-avatar" style="background-image: url(//cartodb-libs.global.ssl.fastly.net/cartodbui/assets/unversioned/images/avatars/avatar_ghost_yellow.png);"></div>
<userdropdown-stub baseurl="" usermodel="[object Object]"></userdropdown-stub>
<notificationpopup-stub title="FeedbackMessage.title" message="FeedbackMessage.message" class="notification-popup"></notificationpopup-stub>
<!---->
<notificationpopup-stub title="New Connection Feature" message="Bring your CARTO data to the tools you already use. You can now connect to your CARTO account from other GIS or BI tools and database clients. <a href='undefined'>Discover it!</a>" messagehashtml="true" class="notification-popup"></notificationpopup-stub>
</div> <span class="navbar-searchClose"><img svg-inline="" src="../../assets/icons/navbar/close.svg"></span>
</div>
</nav>

6
package-lock.json generated

@ -6649,9 +6649,9 @@
}
},
"core-js": {
"version": "3.6.4",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.6.4.tgz",
"integrity": "sha512-4paDGScNgZP2IXXilaffL9X7968RuvwlkK3xWtZRVqgd8SYNiVKRJvkFd1aqqEuPfN7E68ZHEp9hDj6lHj4Hyw=="
"version": "3.6.5",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.6.5.tgz",
"integrity": "sha512-vZVEEwZoIsI+vPEuoF9Iqf5H7/M3eeQqWlQnYa8FSKKePuYTf5MWnxb5SDAzCa60b3JBRS5g9b+Dq7b1y/RCrA=="
},
"core-js-compat": {
"version": "3.6.4",

@ -39,7 +39,7 @@
"clipboard": "1.6.1",
"codemirror": "5.14.2",
"confetti-js": "0.0.14",
"core-js": "^3.6.4",
"core-js": "^3.6.5",
"d3-interpolate": "^1.1.6",
"d3-queue": "^3.0.7",
"date-fns": "^1.29.0",

@ -10,5 +10,8 @@ module.exports = merge(configBase, {
__ENV__: JSON.stringify('dev'),
__KEPLERGL_BASE_URL__: JSON.stringify('http://localhost:8081')
})
]
],
optimization: {
usedExports: true
}
});

Loading…
Cancel
Save