From 881fa815850241ff7ad95055e883a7d787c5daa0 Mon Sep 17 00:00:00 2001 From: Victor Date: Tue, 29 Oct 2024 09:57:35 +0100 Subject: [PATCH] Uppdated workflow, will hopefully resolve Jasmine issue --- .github/workflows/test.yml | 6 + ...208ddca5-e9a2-4049-8365-26af0f801901.json} | 0 ...a8f17b12-4726-419f-aaf6-4f75580ca305.json} | 0 .../208ddca5-e9a2-4049-8365-26af0f801901.json | 1 + .../8bf1fc23-be44-4df7-b008-bc719524f76b.json | 1 - .../a8f17b12-4726-419f-aaf6-4f75580ca305.json | 1 + .../fd75e151-a57c-410c-8dac-00cf31743de9.json | 1 - .nyc_output/processinfo/index.json | 2 +- coverage/lcov-report/index.html | 2 +- .../lcov-report/src/controllers/auth.js.html | 2 +- .../src/controllers/cohort.js.html | 2 +- .../src/controllers/deliveryLog.js.html | 2 +- .../lcov-report/src/controllers/index.html | 2 +- .../lcov-report/src/controllers/post.js.html | 2 +- .../lcov-report/src/controllers/user.js.html | 2 +- .../lcov-report/src/domain/cohort.js.html | 2 +- coverage/lcov-report/src/domain/index.html | 2 +- coverage/lcov-report/src/domain/user.js.html | 2 +- coverage/lcov-report/src/index.html | 2 +- coverage/lcov-report/src/index.js.html | 2 +- .../lcov-report/src/middleware/auth.js.html | 2 +- .../lcov-report/src/middleware/index.html | 2 +- coverage/lcov-report/src/routes/auth.js.html | 2 +- .../lcov-report/src/routes/cohort.js.html | 2 +- .../src/routes/deliveryLog.js.html | 2 +- coverage/lcov-report/src/routes/index.html | 2 +- coverage/lcov-report/src/routes/post.js.html | 2 +- coverage/lcov-report/src/routes/user.js.html | 2 +- coverage/lcov-report/src/server.js.html | 2 +- coverage/lcov-report/src/utils/config.js.html | 2 +- .../lcov-report/src/utils/dbClient.js.html | 2 +- coverage/lcov-report/src/utils/index.html | 2 +- .../lcov-report/src/utils/responses.js.html | 2 +- package-lock.json | 599 ++++++++++++++++++ package.json | 28 +- spec/support/jasmine.json | 13 + 36 files changed, 664 insertions(+), 38 deletions(-) rename .nyc_output/{8bf1fc23-be44-4df7-b008-bc719524f76b.json => 208ddca5-e9a2-4049-8365-26af0f801901.json} (100%) rename .nyc_output/{fd75e151-a57c-410c-8dac-00cf31743de9.json => a8f17b12-4726-419f-aaf6-4f75580ca305.json} (100%) create mode 100644 .nyc_output/processinfo/208ddca5-e9a2-4049-8365-26af0f801901.json delete mode 100644 .nyc_output/processinfo/8bf1fc23-be44-4df7-b008-bc719524f76b.json create mode 100644 .nyc_output/processinfo/a8f17b12-4726-419f-aaf6-4f75580ca305.json delete mode 100644 .nyc_output/processinfo/fd75e151-a57c-410c-8dac-00cf31743de9.json create mode 100644 spec/support/jasmine.json diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d4d24896..4e234ac8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,6 +21,12 @@ jobs: - name: Install dependencies run: npm install + + - name: Install Jasmine + run: npm install jasmine --save-dev + + - name: Initialize Jasmine + run: npx jasmine init - name: Run tests with coverage run: npm run test:coverage diff --git a/.nyc_output/8bf1fc23-be44-4df7-b008-bc719524f76b.json b/.nyc_output/208ddca5-e9a2-4049-8365-26af0f801901.json similarity index 100% rename from .nyc_output/8bf1fc23-be44-4df7-b008-bc719524f76b.json rename to .nyc_output/208ddca5-e9a2-4049-8365-26af0f801901.json diff --git a/.nyc_output/fd75e151-a57c-410c-8dac-00cf31743de9.json b/.nyc_output/a8f17b12-4726-419f-aaf6-4f75580ca305.json similarity index 100% rename from .nyc_output/fd75e151-a57c-410c-8dac-00cf31743de9.json rename to .nyc_output/a8f17b12-4726-419f-aaf6-4f75580ca305.json diff --git a/.nyc_output/processinfo/208ddca5-e9a2-4049-8365-26af0f801901.json b/.nyc_output/processinfo/208ddca5-e9a2-4049-8365-26af0f801901.json new file mode 100644 index 00000000..7b59a622 --- /dev/null +++ b/.nyc_output/processinfo/208ddca5-e9a2-4049-8365-26af0f801901.json @@ -0,0 +1 @@ +{"parent":null,"pid":23372,"argv":["C:\\Users\\VChici\\.nvm\\versions\\node\\v20.16.0\\bin\\node.exe","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\node_modules\\nyc\\bin\\nyc.js","jasmine"],"execArgv":[],"cwd":"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3","time":1730192004005,"ppid":25536,"coverageFilename":"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\.nyc_output\\208ddca5-e9a2-4049-8365-26af0f801901.json","externalId":"","uuid":"208ddca5-e9a2-4049-8365-26af0f801901","files":["C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\auth.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\cohort.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\deliveryLog.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\post.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\user.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\domain\\cohort.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\domain\\user.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\index.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\middleware\\auth.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\auth.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\cohort.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\deliveryLog.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\post.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\user.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\server.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\utils\\config.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\utils\\dbClient.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\utils\\responses.js"]} \ No newline at end of file diff --git a/.nyc_output/processinfo/8bf1fc23-be44-4df7-b008-bc719524f76b.json b/.nyc_output/processinfo/8bf1fc23-be44-4df7-b008-bc719524f76b.json deleted file mode 100644 index 83838595..00000000 --- a/.nyc_output/processinfo/8bf1fc23-be44-4df7-b008-bc719524f76b.json +++ /dev/null @@ -1 +0,0 @@ -{"parent":null,"pid":7620,"argv":["C:\\Users\\VChici\\.nvm\\versions\\node\\v20.16.0\\bin\\node.exe","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\node_modules\\nyc\\bin\\nyc.js","jasmine"],"execArgv":[],"cwd":"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3","time":1730189496062,"ppid":8504,"coverageFilename":"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\.nyc_output\\8bf1fc23-be44-4df7-b008-bc719524f76b.json","externalId":"","uuid":"8bf1fc23-be44-4df7-b008-bc719524f76b","files":["C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\auth.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\cohort.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\deliveryLog.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\post.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\user.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\domain\\cohort.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\domain\\user.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\index.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\middleware\\auth.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\auth.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\cohort.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\deliveryLog.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\post.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\user.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\server.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\utils\\config.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\utils\\dbClient.js","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\utils\\responses.js"]} \ No newline at end of file diff --git a/.nyc_output/processinfo/a8f17b12-4726-419f-aaf6-4f75580ca305.json b/.nyc_output/processinfo/a8f17b12-4726-419f-aaf6-4f75580ca305.json new file mode 100644 index 00000000..3f6ad653 --- /dev/null +++ b/.nyc_output/processinfo/a8f17b12-4726-419f-aaf6-4f75580ca305.json @@ -0,0 +1 @@ +{"parent":null,"pid":27552,"argv":["C:\\Users\\VChici\\.nvm\\versions\\node\\v20.16.0\\bin\\node.exe","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\node_modules\\jasmine\\bin\\jasmine.js"],"execArgv":[],"cwd":"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3","time":1730192004823,"ppid":18136,"coverageFilename":"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\.nyc_output\\a8f17b12-4726-419f-aaf6-4f75580ca305.json","externalId":"","uuid":"a8f17b12-4726-419f-aaf6-4f75580ca305","files":[]} \ No newline at end of file diff --git a/.nyc_output/processinfo/fd75e151-a57c-410c-8dac-00cf31743de9.json b/.nyc_output/processinfo/fd75e151-a57c-410c-8dac-00cf31743de9.json deleted file mode 100644 index 51e06ae1..00000000 --- a/.nyc_output/processinfo/fd75e151-a57c-410c-8dac-00cf31743de9.json +++ /dev/null @@ -1 +0,0 @@ -{"parent":null,"pid":25528,"argv":["C:\\Users\\VChici\\.nvm\\versions\\node\\v20.16.0\\bin\\node.exe","C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\node_modules\\jasmine\\bin\\jasmine.js"],"execArgv":[],"cwd":"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3","time":1730189496960,"ppid":14880,"coverageFilename":"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\.nyc_output\\fd75e151-a57c-410c-8dac-00cf31743de9.json","externalId":"","uuid":"fd75e151-a57c-410c-8dac-00cf31743de9","files":[]} \ No newline at end of file diff --git a/.nyc_output/processinfo/index.json b/.nyc_output/processinfo/index.json index cdbbda41..65fcb5e9 100644 --- a/.nyc_output/processinfo/index.json +++ b/.nyc_output/processinfo/index.json @@ -1 +1 @@ -{"processes":{"8bf1fc23-be44-4df7-b008-bc719524f76b":{"parent":null,"children":[]},"fd75e151-a57c-410c-8dac-00cf31743de9":{"parent":null,"children":[]}},"files":{"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\auth.js":["8bf1fc23-be44-4df7-b008-bc719524f76b"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\cohort.js":["8bf1fc23-be44-4df7-b008-bc719524f76b"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\deliveryLog.js":["8bf1fc23-be44-4df7-b008-bc719524f76b"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\post.js":["8bf1fc23-be44-4df7-b008-bc719524f76b"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\user.js":["8bf1fc23-be44-4df7-b008-bc719524f76b"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\domain\\cohort.js":["8bf1fc23-be44-4df7-b008-bc719524f76b"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\domain\\user.js":["8bf1fc23-be44-4df7-b008-bc719524f76b"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\index.js":["8bf1fc23-be44-4df7-b008-bc719524f76b"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\middleware\\auth.js":["8bf1fc23-be44-4df7-b008-bc719524f76b"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\auth.js":["8bf1fc23-be44-4df7-b008-bc719524f76b"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\cohort.js":["8bf1fc23-be44-4df7-b008-bc719524f76b"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\deliveryLog.js":["8bf1fc23-be44-4df7-b008-bc719524f76b"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\post.js":["8bf1fc23-be44-4df7-b008-bc719524f76b"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\user.js":["8bf1fc23-be44-4df7-b008-bc719524f76b"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\server.js":["8bf1fc23-be44-4df7-b008-bc719524f76b"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\utils\\config.js":["8bf1fc23-be44-4df7-b008-bc719524f76b"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\utils\\dbClient.js":["8bf1fc23-be44-4df7-b008-bc719524f76b"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\utils\\responses.js":["8bf1fc23-be44-4df7-b008-bc719524f76b"]},"externalIds":{}} \ No newline at end of file +{"processes":{"208ddca5-e9a2-4049-8365-26af0f801901":{"parent":null,"children":[]},"a8f17b12-4726-419f-aaf6-4f75580ca305":{"parent":null,"children":[]}},"files":{"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\auth.js":["208ddca5-e9a2-4049-8365-26af0f801901"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\cohort.js":["208ddca5-e9a2-4049-8365-26af0f801901"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\deliveryLog.js":["208ddca5-e9a2-4049-8365-26af0f801901"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\post.js":["208ddca5-e9a2-4049-8365-26af0f801901"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\controllers\\user.js":["208ddca5-e9a2-4049-8365-26af0f801901"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\domain\\cohort.js":["208ddca5-e9a2-4049-8365-26af0f801901"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\domain\\user.js":["208ddca5-e9a2-4049-8365-26af0f801901"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\index.js":["208ddca5-e9a2-4049-8365-26af0f801901"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\middleware\\auth.js":["208ddca5-e9a2-4049-8365-26af0f801901"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\auth.js":["208ddca5-e9a2-4049-8365-26af0f801901"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\cohort.js":["208ddca5-e9a2-4049-8365-26af0f801901"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\deliveryLog.js":["208ddca5-e9a2-4049-8365-26af0f801901"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\post.js":["208ddca5-e9a2-4049-8365-26af0f801901"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\routes\\user.js":["208ddca5-e9a2-4049-8365-26af0f801901"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\server.js":["208ddca5-e9a2-4049-8365-26af0f801901"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\utils\\config.js":["208ddca5-e9a2-4049-8365-26af0f801901"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\utils\\dbClient.js":["208ddca5-e9a2-4049-8365-26af0f801901"],"C:\\Users\\VChici\\Desktop\\Project\\team-dev-server-ex-2410-team3\\src\\utils\\responses.js":["208ddca5-e9a2-4049-8365-26af0f801901"]},"externalIds":{}} \ No newline at end of file diff --git a/coverage/lcov-report/index.html b/coverage/lcov-report/index.html index aac45c60..fa043ce0 100644 --- a/coverage/lcov-report/index.html +++ b/coverage/lcov-report/index.html @@ -176,7 +176,7 @@

All files