我有一个谷歌云功能,我在 beforeCreate 触发器的 Google Identity Platform 中运行,如下所示:
import * as gcipCloudFunctions from "gcip-cloud-functions";
const authClient = new gcipCloudFunctions.Auth();
const beforeCreate = authClient.functions().beforeCreateHandler((user, context) => {
console.log("Hello world");
});
export default beforeCreate;
我如何去创建笑话测试来模拟这个事件。或者我怎样才能创建测试来执行这个功能。