I have an issue with a JavaScript function
export const cleanUp = async () => {
await User.destroy({ where: {} });
};
I am attempting to add a line below
await User.destroy({ where: {} })
using
recast.parse(`await ${module}.destroy({ where: {} });`);
However, I am constantly receiving an error message saying Unexpected Identifier
because esprima is looking for an async declaration. Is there another way to accomplish this task?