From 775ce91ef4bd6238e5128475d228883d202ae340 Mon Sep 17 00:00:00 2001 From: Cassidy Boilley Date: Tue, 28 May 2024 10:21:09 -0700 Subject: [PATCH] removed tsconfig to fix build, still generates a lot of warnings --- package.json | 16 ++++++++++++---- tsconfig.json | 35 ----------------------------------- 2 files changed, 12 insertions(+), 39 deletions(-) delete mode 100644 tsconfig.json diff --git a/package.json b/package.json index 0afe801..73d5dc8 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,9 @@ "start": "next start", "lint": "next lint", "prepare": "husky", - "format": "eslint --fix . && prettier --write ." + "format": "eslint --fix . && prettier --write .", + "jest": "jest e2e", + "coverage": "jest --coverage" }, "lint-staged": { "**/*": [ @@ -31,6 +33,7 @@ "auth0": "^4.4.0", "axios": "^1.6.8", "babel": "^6.23.0", + "babel-plugin-istanbul": "^6.1.1", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", "dotenv": "^16.4.5", @@ -38,7 +41,6 @@ "mongoose": "^8.3.4", "next": "14.2.3", "node-cron": "^3.0.3", - "puppeteer": "^22.9.0", "puppeteer-extra": "^3.3.6", "puppeteer-extra-plugin-stealth": "^2.11.2", "react": "^18", @@ -46,22 +48,28 @@ "react-quill": "^2.0.0", "stripe": "^15.6.0", "tailwind-merge": "^2.3.0", - "tailwindcss-animate": "^1.0.7" + "tailwindcss-animate": "^1.0.7", + "ts-node": "^10.9.2" }, "devDependencies": { + "@jest/globals": "^29.7.0", "@playwright/test": "^1.44.1", + "@types/jest": "^29.5.12", "@types/node": "^20.12.12", + "@types/puppeteer": "^7.0.4", "@types/react": "18.3.3", "eslint": "^8", "eslint-config-next": "14.2.3", "husky": "^9.0.11", + "jest": "^29.7.0", + "jest-playwright-preset": "^4.0.0", "lint-staged": "^15.2.2", "playwright": "^1.44.1", "postcss": "^8", "prettier": "3.2.5", "puppeteer": "^22.10.0", "tailwindcss": "^3.4.1", - "ts-jest": "^29.1.4", + "ts-jest": "^29.1.3", "typescript": "^5.4.5" } } diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index 0447381..0000000 --- a/tsconfig.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "compilerOptions": { - "target": "es6", - "lib": ["dom", "dom.iterable", "esnext"], - "strict": true, - "module": "commonjs", - "noEmit": true, - "allowJs": true, - "esModuleInterop": true, - "resolveJsonModule": true, - "forceConsistentCasingInFileNames": true, - "types": [ - "@types/jest", - "jest-playwright/preset", - "expect-playwright", - "@types/node" - ], - "skipLibCheck": true, - "incremental": true, - "moduleResolution": "node", - "isolatedModules": true, - "jsx": "preserve", - "plugins": [ - { - "name": "next" - } - ] - }, - "include": ["src", ".next/types/**/*.ts"], - "files": [ - "node_modules/jest-playwright/types/global.d.ts", - "node_modules/expect-playwright/global.d.ts" - ], - "exclude": ["node_modules"] -}