diff --git a/test_output.txt b/test_output.txt deleted file mode 100644 index fb2dac9..0000000 Binary files a/test_output.txt and /dev/null differ diff --git a/test_results.json b/test_results.json deleted file mode 100644 index 72f1376..0000000 --- a/test_results.json +++ /dev/null @@ -1 +0,0 @@ -{"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":9,"numPassedTests":25,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":9,"numTotalTests":25,"openHandles":[],"snapshot":{"added":0,"didUpdate":false,"failure":false,"filesAdded":0,"filesRemoved":0,"filesRemovedList":[],"filesUnmatched":0,"filesUpdated":0,"matched":0,"total":0,"unchecked":0,"uncheckedKeysByFile":[],"unmatched":0,"updated":0},"startTime":1773599063767,"success":true,"testResults":[{"assertionResults":[{"ancestorTitles":["Health Route"],"duration":198,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Health Route should return 200","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1773599067711,"status":"passed","title":"should return 200"}],"endTime":1773599067916,"message":"","name":"D:\\project\\HMS\\hms-backend-node\\tests\\health.test.js","startTime":1773599064177,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Patient Integration Tests","GET /api/patients"],"duration":300,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Patient Integration Tests GET /api/patients should return patients list for admin","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1773599067367,"status":"passed","title":"should return patients list for admin"},{"ancestorTitles":["Patient Integration Tests","POST /api/patients"],"duration":181,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Patient Integration Tests POST /api/patients should register a new patient","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1773599067668,"status":"passed","title":"should register a new patient"},{"ancestorTitles":["Patient Integration Tests","POST /api/patients"],"duration":106,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Patient Integration Tests POST /api/patients should fail if missing required patient details","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1773599067849,"status":"passed","title":"should fail if missing required patient details"}],"endTime":1773599067958,"message":"","name":"D:\\project\\HMS\\hms-backend-node\\tests\\patient.test.js","startTime":1773599064149,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Auth Integration Tests","POST /api/auth/login"],"duration":433,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Auth Integration Tests POST /api/auth/login should return 400 if email or password is missing","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1773599067488,"status":"passed","title":"should return 400 if email or password is missing"},{"ancestorTitles":["Auth Integration Tests","POST /api/auth/login"],"duration":27,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Auth Integration Tests POST /api/auth/login should return 401 for invalid email","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1773599067922,"status":"passed","title":"should return 401 for invalid email"},{"ancestorTitles":["Auth Integration Tests","POST /api/auth/login"],"duration":31,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Auth Integration Tests POST /api/auth/login should return 200 and token for valid credentials","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1773599067950,"status":"passed","title":"should return 200 and token for valid credentials"},{"ancestorTitles":["Auth Integration Tests","GET /api/auth/me"],"duration":34,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Auth Integration Tests GET /api/auth/me should return 401 if no token provided","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1773599067982,"status":"passed","title":"should return 401 if no token provided"},{"ancestorTitles":["Auth Integration Tests","GET /api/auth/me"],"duration":18,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Auth Integration Tests GET /api/auth/me should return user profile if valid token provided","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1773599068017,"status":"passed","title":"should return user profile if valid token provided"}],"endTime":1773599068037,"message":"","name":"D:\\project\\HMS\\hms-backend-node\\tests\\auth.test.js","startTime":1773599064124,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Doctor Integration Tests","GET /api/users/doctors"],"duration":264,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Doctor Integration Tests GET /api/users/doctors should return doctors list for admin","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1773599067588,"status":"passed","title":"should return doctors list for admin"},{"ancestorTitles":["Doctor Integration Tests","POST /api/users/doctors"],"duration":211,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Doctor Integration Tests POST /api/users/doctors should return 400 if required fields are missing","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1773599067854,"status":"passed","title":"should return 400 if required fields are missing"}],"endTime":1773599068067,"message":"","name":"D:\\project\\HMS\\hms-backend-node\\tests\\doctor.test.js","startTime":1773599064145,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["HMS Billing Flow Integration"],"duration":24,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"HMS Billing Flow Integration 1. Should create a new bill for a patient","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1773599068032,"status":"passed","title":"1. Should create a new bill for a patient"},{"ancestorTitles":["HMS Billing Flow Integration"],"duration":33,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"HMS Billing Flow Integration 2. Should fetch billing records (Verifying map bug fix)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1773599068057,"status":"passed","title":"2. Should fetch billing records (Verifying map bug fix)"},{"ancestorTitles":["HMS Billing Flow Integration"],"duration":18,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"HMS Billing Flow Integration 3. Should update bill status to Paid","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1773599068090,"status":"passed","title":"3. Should update bill status to Paid"}],"endTime":1773599068173,"message":"","name":"D:\\project\\HMS\\hms-backend-node\\tests\\billing_flow.test.js","startTime":1773599064125,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["HMS Patient Flow Integration"],"duration":28,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"HMS Patient Flow Integration 1. Should register a patient without password requirement","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1773599068123,"status":"passed","title":"1. Should register a patient without password requirement"},{"ancestorTitles":["HMS Patient Flow Integration"],"duration":15,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"HMS Patient Flow Integration 2. Should fetch patient by ID (Verifying the 404 fix)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1773599068152,"status":"passed","title":"2. Should fetch patient by ID (Verifying the 404 fix)"},{"ancestorTitles":["HMS Patient Flow Integration"],"duration":18,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"HMS Patient Flow Integration 3. Should update patient details","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1773599068168,"status":"passed","title":"3. Should update patient details"}],"endTime":1773599068200,"message":"","name":"D:\\project\\HMS\\hms-backend-node\\tests\\patient_flow.test.js","startTime":1773599064144,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["HMS Integration Suite - Auth & Roles"],"duration":299,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"HMS Integration Suite - Auth & Roles 1. Should create a new receptionist (via internal service logic simulated)","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1773599067981,"status":"passed","title":"1. Should create a new receptionist (via internal service logic simulated)"},{"ancestorTitles":["HMS Integration Suite - Auth & Roles"],"duration":69,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"HMS Integration Suite - Auth & Roles 2. Should login successfully with default password \"reception@123\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1773599068281,"status":"passed","title":"2. Should login successfully with default password \"reception@123\""},{"ancestorTitles":["HMS Integration Suite - Auth & Roles"],"duration":65,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"HMS Integration Suite - Auth & Roles 3. Should fail login with wrong password","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1773599068350,"status":"passed","title":"3. Should fail login with wrong password"},{"ancestorTitles":["HMS Integration Suite - Auth & Roles"],"duration":14,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"HMS Integration Suite - Auth & Roles 4. Should access receptionist-only dashboard route","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1773599068415,"status":"passed","title":"4. Should access receptionist-only dashboard route"}],"endTime":1773599068439,"message":"","name":"D:\\project\\HMS\\hms-backend-node\\tests\\integration_suite.test.js","startTime":1773599064125,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Billing Integration Tests","GET /api/billing"],"duration":12,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Billing Integration Tests GET /api/billing should return billing records","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1773599068727,"status":"passed","title":"should return billing records"},{"ancestorTitles":["Billing Integration Tests","POST /api/billing"],"duration":13,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Billing Integration Tests POST /api/billing should create a new bill","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1773599068740,"status":"passed","title":"should create a new bill"}],"endTime":1773599068754,"message":"","name":"D:\\project\\HMS\\hms-backend-node\\tests\\billing.test.js","startTime":1773599067982,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Appointment Integration Tests","GET /api/appointments"],"duration":19,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Appointment Integration Tests GET /api/appointments should return appointments list","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1773599068739,"status":"passed","title":"should return appointments list"},{"ancestorTitles":["Appointment Integration Tests","POST /api/appointments"],"duration":21,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Appointment Integration Tests POST /api/appointments should create a new appointment","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1773599068758,"status":"passed","title":"should create a new appointment"}],"endTime":1773599068780,"message":"","name":"D:\\project\\HMS\\hms-backend-node\\tests\\appointment.test.js","startTime":1773599067952,"status":"passed","summary":""}],"wasInterrupted":false}