2
0

perf(e2e): ️ Migrate to Playwright

This commit is contained in:
Baptiste Arnaud
2022-01-28 09:42:31 +01:00
parent c5aaa323d1
commit 73f277fce7
145 changed files with 3104 additions and 2346 deletions

View File

@@ -10,6 +10,7 @@
},
"dependencies": {
"bot-engine": "*",
"cors": "^2.8.5",
"db": "*",
"google-spreadsheet": "^3.2.0",
"models": "*",
@@ -19,6 +20,7 @@
"utils": "*"
},
"devDependencies": {
"@types/cors": "^2.8.12",
"@types/google-spreadsheet": "^3.1.5",
"@types/node": "^17.0.4",
"@types/react": "^17.0.38",

View File

@@ -1,10 +1,13 @@
import { NextApiRequest, NextApiResponse } from 'next'
import { methodNotAllowed } from 'utils'
import { initMiddleware, methodNotAllowed } from 'utils'
import { GoogleSpreadsheet } from 'google-spreadsheet'
import { getAuthenticatedGoogleClient } from 'libs/google-sheets'
import { Cell } from 'models'
import Cors from 'cors'
const cors = initMiddleware(Cors())
const handler = async (req: NextApiRequest, res: NextApiResponse) => {
await cors(req, res)
if (req.method === 'GET') {
const spreadsheetId = req.query.spreadsheetId.toString()
const sheetId = req.query.sheetId.toString()