2
0

fix(viewer): 🐛 Custom metadata in viewer

This commit is contained in:
Baptiste Arnaud
2022-02-20 10:45:55 +01:00
parent feb966d513
commit 6ec8d06b97
8 changed files with 312 additions and 16 deletions

View File

@@ -0,0 +1,14 @@
import { FullConfig } from '@playwright/test'
import { setupDatabase, teardownDatabase } from './services/database'
// eslint-disable-next-line @typescript-eslint/no-var-requires
require('dotenv').config({ path: '.env' })
async function globalSetup(config: FullConfig) {
const { baseURL } = config.projects[0].use
if (!baseURL) throw new Error('baseURL is missing')
await teardownDatabase()
await setupDatabase()
}
export default globalSetup