Skip to content
Snippets Groups Projects
Commit 61e2fd59 authored by Bucknell, Mary S.'s avatar Bucknell, Mary S.
Browse files

Trying a moduleNameMapper function

parent f7dc5c81
No related branches found
No related tags found
1 merge request!316WDFN_739 - Investigate how to bring in the Vue component to use for components
......@@ -18,6 +18,7 @@ module.exports = {
clearMocks: true,
restoreMocks: true,
moduleNameMapper: {
'Vue': '<rootDir>node_modules/vue',
'^uswds-components(.*)$': '<rootDir>node_modules/@uswds/uswds/packages$1',
'^ui/(.*)$': '<rootDir>src/scripts/$1',
'^ml/(.*)$': '<rootDir>src/scripts/monitoring-location/$1',
......@@ -28,7 +29,7 @@ module.exports = {
'^network/(.*)$': '<rootDir>src/scripts/network/$1'
},
transformIgnorePatterns: [
'node_modules/(?!(d3-format|d3-array|d3-scale|d3-shape|d3-time|d3-time-format|d3-path|d3-selection|d3-brush|d3-axis|d3-transition|internmap|redux-connect-vue)/)'
'node_modules/(?!(d3-format|d3-array|d3-scale|d3-shape|d3-time|d3-time-format|d3-path|d3-selection|d3-brush|d3-axis|d3-transition|internmap)/)'
],
testEnvironment: 'jsdom',
setupFilesAfterEnv: [require.resolve('regenerator-runtime/runtime')]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment