From bf412b217d564c5ee17ec1ccb240d22b03601beb Mon Sep 17 00:00:00 2001 From: Jared Lucas Amistad Schulz Date: Mon, 11 Nov 2024 16:30:46 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AAadded=20tests=20to=20repo=20and=20r?= =?UTF-8?q?emoved=20unused=20dependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/.gitignore | 3 +- backend/package.json | 3 -- backend/pnpm-lock.yaml | 74 ------------------------------------------ 3 files changed, 1 insertion(+), 79 deletions(-) diff --git a/backend/.gitignore b/backend/.gitignore index 041e5b0..3a254f0 100644 --- a/backend/.gitignore +++ b/backend/.gitignore @@ -1,4 +1,3 @@ node_modules # Keep environment variables out of version control -.env -./tests \ No newline at end of file +.env \ No newline at end of file diff --git a/backend/package.json b/backend/package.json index 0020ff3..3696442 100644 --- a/backend/package.json +++ b/backend/package.json @@ -15,7 +15,6 @@ "@prisma/client": "^5.21.1", "bcrypt": "^5.1.1", "cors": "^2.8.5", - "dotenv-cli": "^7.4.2", "express": "^4.21.1", "express-session": "^1.18.1", "prisma": "^5.21.1", @@ -28,8 +27,6 @@ "@types/express": "4", "@types/express-session": "^1.18.0", "@types/node": "^22.7.7", - "@types/supertest": "^6.0.2", - "cross-env": "^7.0.3", "jest-mock-extended": "2.0.4", "supertest": "^7.0.0", "sync-request-curl": "^3.0.0", diff --git a/backend/pnpm-lock.yaml b/backend/pnpm-lock.yaml index b1d07ad..8fc2ee9 100644 --- a/backend/pnpm-lock.yaml +++ b/backend/pnpm-lock.yaml @@ -17,9 +17,6 @@ importers: cors: specifier: ^2.8.5 version: 2.8.5 - dotenv-cli: - specifier: ^7.4.2 - version: 7.4.2 express: specifier: ^4.21.1 version: 4.21.1 @@ -51,12 +48,6 @@ importers: '@types/node': specifier: ^22.7.7 version: 22.7.7 - '@types/supertest': - specifier: ^6.0.2 - version: 6.0.2 - cross-env: - specifier: ^7.0.3 - version: 7.0.3 jest-mock-extended: specifier: 2.0.4 version: 2.0.4(jest@29.7.0(@types/node@22.7.7)(ts-node@10.9.2(@types/node@22.7.7)(typescript@5.6.3)))(typescript@5.6.3) @@ -809,9 +800,6 @@ packages: '@types/connect@3.4.38': resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} - '@types/cookiejar@2.1.5': - resolution: {integrity: sha512-he+DHOWReW0nghN24E1WUqM0efK4kI9oTqDm6XmK8ZPe2djZ90BSNdGnIyCLzCPw7/pogPlGbzI2wHGGmi4O/Q==} - '@types/cors@2.8.17': resolution: {integrity: sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==} @@ -842,9 +830,6 @@ packages: '@types/istanbul-reports@3.0.4': resolution: {integrity: sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==} - '@types/methods@1.1.4': - resolution: {integrity: sha512-ymXWVrDiCxTBE3+RIrrP533E70eA+9qu7zdWoHuOmGujkYtzf4HQF96b8nwHLqhuf4ykX61IGRIB38CC6/sImQ==} - '@types/mime@1.3.5': resolution: {integrity: sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==} @@ -866,12 +851,6 @@ packages: '@types/stack-utils@2.0.3': resolution: {integrity: sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==} - '@types/superagent@8.1.9': - resolution: {integrity: sha512-pTVjI73witn+9ILmoJdajHGW2jkSaOzhiFYF1Rd3EQ94kymLqB9PjD9ISg7WaALC7+dCHT0FGe9T2LktLq/3GQ==} - - '@types/supertest@6.0.2': - resolution: {integrity: sha512-137ypx2lk/wTQbW6An6safu9hXmajAifU/s7szAHLN/FeIm5w7yR0Wkl9fdJMRSHwOn4HLAI0DaB2TOORuhPDg==} - '@types/yargs-parser@21.0.3': resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==} @@ -1191,11 +1170,6 @@ packages: create-require@1.1.1: resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} - cross-env@7.0.3: - resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==} - engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'} - hasBin: true - cross-spawn@7.0.3: resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} engines: {node: '>= 8'} @@ -1271,18 +1245,6 @@ packages: resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} engines: {node: '>=0.3.1'} - dotenv-cli@7.4.2: - resolution: {integrity: sha512-SbUj8l61zIbzyhIbg0FwPJq6+wjbzdn9oEtozQpZ6kW2ihCcapKVZj49oCT3oPM+mgQm+itgvUQcG5szxVrZTA==} - hasBin: true - - dotenv-expand@10.0.0: - resolution: {integrity: sha512-GopVGCpVS1UKH75VKHGuQFqS1Gusej0z4FyQkPdwjil2gNIv+LNsqBlboOzpJFZKVT95GkCyWJbBSdFEFUWI2A==} - engines: {node: '>=12'} - - dotenv@16.4.5: - resolution: {integrity: sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==} - engines: {node: '>=12'} - eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} @@ -1901,9 +1863,6 @@ packages: resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} engines: {node: '>=16 || 14 >=14.17'} - minimist@1.2.8: - resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - minipass-collect@2.0.1: resolution: {integrity: sha512-D7V8PO9oaz7PWGLbCACuI1qEOsq7UKfLotx/C0Aet43fCUB/wfQ7DYeq2oR/svFJGYDHPr38SHATeaj/ZoKHKw==} engines: {node: '>=16 || 14 >=14.17'} @@ -3358,8 +3317,6 @@ snapshots: dependencies: '@types/node': 22.7.7 - '@types/cookiejar@2.1.5': {} - '@types/cors@2.8.17': dependencies: '@types/node': 22.7.7 @@ -3400,8 +3357,6 @@ snapshots: dependencies: '@types/istanbul-lib-report': 3.0.3 - '@types/methods@1.1.4': {} - '@types/mime@1.3.5': {} '@types/node@22.7.7': @@ -3425,18 +3380,6 @@ snapshots: '@types/stack-utils@2.0.3': {} - '@types/superagent@8.1.9': - dependencies: - '@types/cookiejar': 2.1.5 - '@types/methods': 1.1.4 - '@types/node': 22.7.7 - form-data: 4.0.1 - - '@types/supertest@6.0.2': - dependencies: - '@types/methods': 1.1.4 - '@types/superagent': 8.1.9 - '@types/yargs-parser@21.0.3': {} '@types/yargs@17.0.33': @@ -3795,10 +3738,6 @@ snapshots: create-require@1.1.1: {} - cross-env@7.0.3: - dependencies: - cross-spawn: 7.0.3 - cross-spawn@7.0.3: dependencies: path-key: 3.1.1 @@ -3846,17 +3785,6 @@ snapshots: diff@4.0.2: {} - dotenv-cli@7.4.2: - dependencies: - cross-spawn: 7.0.3 - dotenv: 16.4.5 - dotenv-expand: 10.0.0 - minimist: 1.2.8 - - dotenv-expand@10.0.0: {} - - dotenv@16.4.5: {} - eastasianwidth@0.2.0: {} easy-libcurl@2.0.3(encoding@0.1.13): @@ -4737,8 +4665,6 @@ snapshots: dependencies: brace-expansion: 2.0.1 - minimist@1.2.8: {} - minipass-collect@2.0.1: dependencies: minipass: 7.1.2