'Include reference to TypeScript library in Jest config for another library
I have a shared typescript library that exports a function being used by a react library. Everything works at runtime, however when running the tests for the react library I get the error -
({"Object.":function(module,exports,require,__dirname,__filename,jest){export { sharedUtils } from './lib/shared-utils'; ^^^^^^
SyntaxError: Unexpected token 'export'
Do I need to manually add a mapping for the react library to reference the shared TypeScript one? if so where and how?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
