2
0

feat(inputs): Add text options

This commit is contained in:
Baptiste Arnaud
2022-01-06 16:54:23 +01:00
parent eea522f5bd
commit f712c7ad98
16 changed files with 356 additions and 75 deletions

View File

@ -15,6 +15,9 @@ export const seedDb = async () => {
return createAnswers()
}
export const createTypebot = (typebot: Typebot) =>
prisma.typebot.create({ data: typebot as any })
const createUsers = () =>
prisma.user.createMany({
data: [

View File

@ -3,7 +3,7 @@ import {
FacebookSocialLogin,
GoogleSocialLogin,
} from 'cypress-social-logins/src/Plugins'
import { seedDb } from './database'
import { createTypebot, seedDb } from './database'
/// <reference types="cypress" />
/**
@ -16,6 +16,7 @@ const handler = (on: any) => {
FacebookSocialLogin: FacebookSocialLogin,
GitHubSocialLogin: GitHubSocialLogin,
seed: seedDb,
createTypebot,
})
}