vega-frontend-monorepo/jest.preset.js
Matthew Russell b3014bb98a
chore(trading,governance,explorer): nx migration to latest (#5246)
Co-authored-by: Edd <edd@vega.xyz>
2023-11-14 15:25:29 +01:00

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',
},
};