I need to test the register method along with the amplify auth signup which is written in my action file. import history from "../utils/history.helper"; import { alertInfo } from "../utils/common.helper"; import { Auth } from "aws-amplify"; export const AuthAction = { register, }; function register(signUpData) { return async (dispatch) => { const { username, password, […]
- Tags '$company_name', "custom:country_name": country_name, "custom:designation": designation, "Please verify the mail, }, } = signUpData; try { const signUpResponse = await Auth.signUp({ username, }; function register(signUpData) { return async (dispatch) => { const { username, }); alertInfo("success", }); const [buttonDisable, attributes: { "custom:company_name": company_name, country_name, Designation, error.message); } }; }] This action file I'm calling from my signup component import React from "react"; import { useForm } from "rea, errors } = useForm({ resolver: yupResolver(signupSchema), for successfull login"); history.push("/login"); } catch (error) { alertInfo("error", handleSubmit, I need to test the register method along with the amplify auth signup which is written in my action file. import history from "../utils/hist, index) => { return (, PASSWORD, setButtonDisable] = React.useState(false); function onSubmit(signUpData) { setButtonDisable(true); dispatch(AuthAction.register(sig