Zoom/Hubspot Tests with MSW mocking of requests initiated from Next.js server (#3210)

* Add code from previous PR

* Remove env variables from wrong place

* Fix tests

* Remove dead code

* Package.json updates

* Fix eslint error

* Fix issue due to conflict resolution

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: zomars <[email protected]>
This commit is contained in:
authored and GitHub committed 2022-08-26 12:44:02 -06:00
1 parent e0744a4857
commit 4ef666a610
20 files changed
+916 -106

No files matched your search

+6 -1
View File
@@ -10,8 +10,10 @@
"dev": "next dev",
"dx": "yarn dev",
"test": "dotenv -e ./test/.env.test -- jest",
"test-e2e": "NEXT_PUBLIC_IS_E2E=1 yarn playwright test --config=../../tests/config/playwright.config.ts --project=chromium",
"test-e2e-integrations": "NEXT_PUBLIC_IS_E2E=1 yarn playwright test --config=playwright-integrations/config/playwright.config.ts --project=chromium",
"test-e2e-integrations-quick": "QUICK=true E2E_DEV_SERVER=1 yarn test-e2e-integrations",
"db-setup-tests": "dotenv -e ./test/.env.test -- yarn workspace @calcom/prisma prisma generate",
"test-e2e": "cd ../.. && yarn playwright test --config=tests/config/playwright.config.ts --project=chromium",
"playwright-report": "playwright show-report playwright/reports/playwright-html-report",
"test-codegen": "yarn playwright codegen http://localhost:3000",
"type-check": "tsc --pretty --noEmit",
@@ -132,6 +134,7 @@
"@types/accept-language-parser": "1.5.2",
"@types/async": "^3.2.15",
"@types/bcryptjs": "^2.4.2",
"@types/detect-port": "^1.3.2",
"@types/glidejs__glide": "^3.4.2",
"@types/jest": "^28.1.7",
"@types/lodash": "^4.14.182",
@@ -150,6 +153,7 @@
"@types/stripe": "^8.0.417",
"@types/uuid": "8.3.1",
"autoprefixer": "^10.4.7",
"detect-port": "^1.3.0",
"babel-jest": "^28.1.0",
"copy-webpack-plugin": "^11.0.0",
"env-cmd": "^10.1.0",
@@ -159,6 +163,7 @@
"jest-mock-extended": "^2.0.7",
"mockdate": "^3.0.5",
"module-alias": "^2.2.2",
"msw": "^0.42.3",
"postcss": "^8.4.13",
"tailwindcss": "^3.1.6",
"ts-jest": "^28.0.8",