forked from Talenttrust/Talenttrust-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresults.json
More file actions
1 lines (1 loc) · 22.4 KB
/
Copy pathresults.json
File metadata and controls
1 lines (1 loc) · 22.4 KB
1
{"numFailedTestSuites":1,"numFailedTests":2,"numPassedTestSuites":6,"numPassedTests":16,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":7,"numTotalTests":18,"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":1774373028530,"success":false,"testResults":[{"assertionResults":[{"ancestorTitles":["Error Middleware"],"duration":52,"failureDetails":[],"failureMessages":[],"fullName":"Error Middleware should handle standard 500 error","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should handle standard 500 error"},{"ancestorTitles":["Error Middleware"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"Error Middleware should handle custom error status","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should handle custom error status"},{"ancestorTitles":["Error Middleware"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"Error Middleware should obscure 500 errors in production","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should obscure 500 errors in production"}],"endTime":1774373034241,"message":"","name":"C:\\Users\\DELL\\Desktop\\drips-2\\Talenttrust-Backend\\src\\middleware\\error.middleware.test.ts","startTime":1774373029650,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Validate Middleware"],"duration":48,"failureDetails":[],"failureMessages":[],"fullName":"Validate Middleware should validate successfully","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should validate successfully"},{"ancestorTitles":["Validate Middleware"],"duration":5,"failureDetails":[],"failureMessages":[],"fullName":"Validate Middleware should handle ZodError and return 400","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should handle ZodError and return 400"},{"ancestorTitles":["Validate Middleware"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"Validate Middleware should pass non-Zod errors to next()","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should pass non-Zod errors to next()"}],"endTime":1774373034563,"message":"","name":"C:\\Users\\DELL\\Desktop\\drips-2\\Talenttrust-Backend\\src\\middleware\\validate.middleware.test.ts","startTime":1774373029648,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["ContractsService","getAllContracts"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"ContractsService getAllContracts should return an empty array initially","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should return an empty array initially"},{"ancestorTitles":["ContractsService","createContract"],"duration":5,"failureDetails":[],"failureMessages":[],"fullName":"ContractsService createContract should create a contract and call SorobanService.prepareEscrow","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should create a contract and call SorobanService.prepareEscrow"}],"endTime":1774373034761,"message":"","name":"C:\\Users\\DELL\\Desktop\\drips-2\\Talenttrust-Backend\\src\\services\\contracts.service.test.ts","startTime":1774373034598,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["ContractsController fallback errors"],"duration":20,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\nExpected: [Error: DB Down]\n\nNumber of calls: 0","pass":false}}],"failureMessages":["Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\nExpected: [Error: DB Down]\n\nNumber of calls: 0\n at Object.<anonymous> (C:\\Users\\DELL\\Desktop\\drips-2\\Talenttrust-Backend\\src\\controllers\\contracts.controller.test.ts:35:22)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)"],"fullName":"ContractsController fallback errors should catch error in getContracts and call next()","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"failed","title":"should catch error in getContracts and call next()"},{"ancestorTitles":["ContractsController fallback errors"],"duration":3,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\nExpected: [Error: Creation failed]\n\nNumber of calls: 0","pass":false}}],"failureMessages":["Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\nExpected: [Error: Creation failed]\n\nNumber of calls: 0\n at Object.<anonymous> (C:\\Users\\DELL\\Desktop\\drips-2\\Talenttrust-Backend\\src\\controllers\\contracts.controller.test.ts:44:22)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)"],"fullName":"ContractsController fallback errors should catch error in createContract and call next()","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"failed","title":"should catch error in createContract and call next()"}],"endTime":1774373034825,"message":" ● ContractsController fallback errors › should catch error in getContracts and call next()\n\n expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\n Expected: [Error: DB Down]\n\n Number of calls: 0\n\n \u001b[0m \u001b[90m 33 |\u001b[39m \u001b[36mawait\u001b[39m \u001b[33mContractsController\u001b[39m\u001b[33m.\u001b[39mgetContracts(mockRequest \u001b[36mas\u001b[39m \u001b[33mRequest\u001b[39m\u001b[33m,\u001b[39m mockResponse \u001b[36mas\u001b[39m \u001b[33mResponse\u001b[39m\u001b[33m,\u001b[39m mockNext)\u001b[33m;\u001b[39m\n \u001b[90m 34 |\u001b[39m \n \u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 35 |\u001b[39m expect(mockNext)\u001b[33m.\u001b[39mtoHaveBeenCalledWith(mockError)\u001b[33m;\u001b[39m\n \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\n \u001b[90m 36 |\u001b[39m })\u001b[33m;\u001b[39m\n \u001b[90m 37 |\u001b[39m\n \u001b[90m 38 |\u001b[39m it(\u001b[32m'should catch error in createContract and call next()'\u001b[39m\u001b[33m,\u001b[39m \u001b[36masync\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[0m\n\n at Object.<anonymous> (src/controllers/contracts.controller.test.ts:35:22)\n\n ● ContractsController fallback errors › should catch error in createContract and call next()\n\n expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\n Expected: [Error: Creation failed]\n\n Number of calls: 0\n\n \u001b[0m \u001b[90m 42 |\u001b[39m \u001b[36mawait\u001b[39m \u001b[33mContractsController\u001b[39m\u001b[33m.\u001b[39mcreateContract(mockRequest \u001b[36mas\u001b[39m \u001b[33mRequest\u001b[39m\u001b[33m,\u001b[39m mockResponse \u001b[36mas\u001b[39m \u001b[33mResponse\u001b[39m\u001b[33m,\u001b[39m mockNext)\u001b[33m;\u001b[39m\n \u001b[90m 43 |\u001b[39m \n \u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 44 |\u001b[39m expect(mockNext)\u001b[33m.\u001b[39mtoHaveBeenCalledWith(mockError)\u001b[33m;\u001b[39m\n \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\n \u001b[90m 45 |\u001b[39m })\u001b[33m;\u001b[39m\n \u001b[90m 46 |\u001b[39m })\u001b[33m;\u001b[39m\n \u001b[90m 47 |\u001b[39m\u001b[0m\n\n at Object.<anonymous> (src/controllers/contracts.controller.test.ts:44:22)\n","name":"C:\\Users\\DELL\\Desktop\\drips-2\\Talenttrust-Backend\\src\\controllers\\contracts.controller.test.ts","startTime":1774373029735,"status":"failed","summary":""},{"assertionResults":[{"ancestorTitles":["SorobanService"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"SorobanService should prepare escrow successfully","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should prepare escrow successfully"},{"ancestorTitles":["SorobanService"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"SorobanService should return escrow status","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should return escrow status"}],"endTime":1774373034937,"message":"","name":"C:\\Users\\DELL\\Desktop\\drips-2\\Talenttrust-Backend\\src\\services\\soroban.service.test.ts","startTime":1774373034771,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["health"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"health should pass","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should pass"}],"endTime":1774373034982,"message":"","name":"C:\\Users\\DELL\\Desktop\\drips-2\\Talenttrust-Backend\\src\\health.test.ts","startTime":1774373034857,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Contracts API Integration Tests","GET /health"],"duration":31,"failureDetails":[],"failureMessages":[],"fullName":"Contracts API Integration Tests GET /health should return health status","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should return health status"},{"ancestorTitles":["Contracts API Integration Tests","GET /api/v1/contracts"],"duration":6,"failureDetails":[],"failureMessages":[],"fullName":"Contracts API Integration Tests GET /api/v1/contracts should return a list of contracts (initially empty)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should return a list of contracts (initially empty)"},{"ancestorTitles":["Contracts API Integration Tests","POST /api/v1/contracts"],"duration":32,"failureDetails":[],"failureMessages":[],"fullName":"Contracts API Integration Tests POST /api/v1/contracts should create a new contract with valid input","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should create a new contract with valid input"},{"ancestorTitles":["Contracts API Integration Tests","POST /api/v1/contracts"],"duration":7,"failureDetails":[],"failureMessages":[],"fullName":"Contracts API Integration Tests POST /api/v1/contracts should return 400 validation error with invalid input (missing title)","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should return 400 validation error with invalid input (missing title)"},{"ancestorTitles":["Contracts API Integration Tests","POST /api/v1/contracts"],"duration":7,"failureDetails":[],"failureMessages":[],"fullName":"Contracts API Integration Tests POST /api/v1/contracts should return 400 validation error with invalid budget (negative)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should return 400 validation error with invalid budget (negative)"}],"endTime":1774373035632,"message":"","name":"C:\\Users\\DELL\\Desktop\\drips-2\\Talenttrust-Backend\\src\\controllers\\contracts.integration.test.ts","startTime":1774373034282,"status":"passed","summary":""}],"wasInterrupted":false}