I'm using file-type ^19.0.0, I have a line in my file import { fileTypeFromBuffer } from 'file-type' that causes this error when I run jest over this file.
` ({"Object.":function(module,exports,require,dirname,filename,jest){import * as strtok3 from 'strtok3';
^^^^^^
SyntaxError: Cannot use import statement outside a module`
I'm using file-type":function(module,exports,require,dirname,filename,jest){import * as strtok3 from 'strtok3';
^^^^^^
^19.0.0
, I have a line in my fileimport { fileTypeFromBuffer } from 'file-type'
that causes this error when I run jest over this file. ` ({"Object.Here's an identical issue on Stack Overflow from a year ago https://stackoverflow.com/questions/74917081/jest-error-while-trying-to-use-with-the-file-type-module-how-can-i-fix-cannot