1

我有一个谷歌云功能,我在 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;

我如何去创建笑话测试来模拟这个事件。或者我怎样才能创建测试来执行这个功能。

阻塞函数:https ://cloud.google.com/identity-platform/docs/blocking-functions#:~:text=Creating%20a%20blocking%20function,-The%20following%20steps&text=Go%20to%20the%20Identity %20Platform%20Settings%20page%20in%20the%20Cloud%20Console.&text=选择%20the%20Triggers%20tab.,然后%20then%20click%20Create%20function

4

0 回答 0