b3014bb98a
Co-authored-by: Edd <edd@vega.xyz>
11 lines
279 B
JavaScript
11 lines
279 B
JavaScript
const nxPreset = require('@nx/jest/preset').default;
|
|
|
|
module.exports = {
|
|
...nxPreset,
|
|
moduleNameMapper: {
|
|
...nxPreset.moduleNameMapper,
|
|
// this mapping fixes jest breaking if anything tries to import d3 due to esm exports
|
|
'^d3-(.*)$': 'd3-$1/dist/d3-$1',
|
|
},
|
|
};
|