I'm encountering issues with executing tests in Angular:
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){export {default as zoom} from "./zoom.js";
^^^^^^
SyntaxError: Unexpected token 'export'
16 | import { scaleLinear } from "d3-scale";
17 | import { event, mouse, select, Selection } from "d3-selection";
> 18 | import { zoom, ZoomBehavior, zoomIdentity, ZoomTransform } from "d3-zoom";
| ^
19 | import { Observable, Subscription } from "rxjs";
20 | import { map, tap } from "rxjs/operators";
I have attempted to follow advice on a different SO post, which recommended switching to a different node version (specifically node v12 instead of v14), but that did not resolve the issue.
Any suggestions on how to troubleshoot this?