in _shims/node-runtime.ts [31:52]
async function fileFromPath(
path: string,
filename?: string,
options?: FileFromPathOptions,
): Promise<File>;
async function fileFromPath(path: string, ...args: any[]): Promise<File> {
// this import fails in environments that don't handle export maps correctly, like old versions of Jest
const { fileFromPath: _fileFromPath } = await import(
"formdata-node/file-from-path"
);
if (!fileFromPathWarned) {
console.warn(
`fileFromPath is deprecated; use fs.createReadStream(${
JSON.stringify(path)
}) instead`,
);
fileFromPathWarned = true;
}
// @ts-ignore
return await _fileFromPath(path, ...args);
}