2
0

♻️ Re-organize workspace folders

This commit is contained in:
Baptiste Arnaud
2023-03-15 08:35:16 +01:00
parent 25c367901f
commit cbc8194f19
987 changed files with 2716 additions and 2770 deletions

View File

@@ -1,5 +1,5 @@
import { Variable, VariableWithValue } from 'models'
import { isNotDefined } from 'utils'
import { Variable, VariableWithValue } from '@typebot.io/schemas'
import { isNotDefined } from '@typebot.io/lib'
export const transformStringVariablesToList =
(variables: Variable[]) =>

View File

@@ -7,8 +7,8 @@ import {
Variable,
VariableWithUnknowValue,
VariableWithValue,
} from 'models'
import { isDefined, isNotDefined } from 'utils'
} from '@typebot.io/schemas'
import { isDefined, isNotDefined } from '@typebot.io/lib'
export const stringContainsVariable = (str: string): boolean =>
/\{\{(.*?)\}\}/g.test(str)

View File

@@ -1,7 +1,7 @@
import { getTestAsset } from '@/test/utils/playwright'
import test, { expect } from '@playwright/test'
import { createId } from '@paralleldrive/cuid2'
import { importTypebotInDatabase } from 'utils/playwright/databaseActions'
import { importTypebotInDatabase } from '@typebot.io/lib/playwright/databaseActions'
test('should correctly be injected', async ({ page }) => {
const typebotId = createId()