-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreport.json
1 lines (1 loc) · 7.18 KB
/
report.json
1
{"numFailedTestSuites":1,"numFailedTests":2,"numPassedTestSuites":0,"numPassedTests":0,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":1,"numTotalTests":2,"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":1696201024191,"success":false,"testResults":[{"assertionResults":[{"ancestorTitles":["TextCompletionButton Component"],"duration":1018,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\nExpected: \"http://localhost:8000/v1/b1/text_completions/\", ObjectContaining {\"body\": \"{\\\"input\\\":\\\"What's the capital of America?\\\"}\", \"headers\": {\"Content-Type\": \"application/json\"}, \"method\": \"POST\"}\n\nNumber of calls: 0","pass":false}}],"failureMessages":["Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\nExpected: \"http://localhost:8000/v1/b1/text_completions/\", ObjectContaining {\"body\": \"{\\\"input\\\":\\\"What's the capital of America?\\\"}\", \"headers\": {\"Content-Type\": \"application/json\"}, \"method\": \"POST\"}\n\nNumber of calls: 0\n\nIgnored nodes: comments, script, style\n<html>\n <head />\n <body>\n <div>\n <div>\n <button>\n Create Text Completion\n </button>\n <input\n aria-label=\"chat input\"\n placeholder=\"Type your message here...\"\n type=\"text\"\n />\n </div>\n </div>\n </body>\n</html>\n at toHaveBeenCalledWith (/Users/merwanehamadi/code/flywheel/pages/text_completer/v1/Component.test.tsx:35:28)\n at runWithExpensiveErrorDiagnosticsDisabled (/Users/merwanehamadi/code/flywheel/node_modules/@testing-library/dom/dist/config.js:47:12)\n at checkCallback (/Users/merwanehamadi/code/flywheel/node_modules/@testing-library/dom/dist/wait-for.js:123:77)\n at checkRealTimersCallback (/Users/merwanehamadi/code/flywheel/node_modules/@testing-library/dom/dist/wait-for.js:117:16)\n at Timeout.task [as _onTimeout] (/Users/merwanehamadi/code/flywheel/node_modules/jsdom/lib/jsdom/browser/Window.js:520:19)\n at listOnTimeout (node:internal/timers:573:17)\n at processTimers (node:internal/timers:514:7)"],"fullName":"TextCompletionButton Component should hit the /text_completions endpoint when clicked","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"failed","title":"should hit the /text_completions endpoint when clicked"},{"ancestorTitles":["TextCompletionButton Component"],"duration":22,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\nExpected: called with 0 arguments\n\nNumber of calls: 0","pass":false}}],"failureMessages":["Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\nExpected: called with 0 arguments\n\nNumber of calls: 0\n at Object.toHaveBeenCalledWith (/Users/merwanehamadi/code/flywheel/pages/text_completer/v1/Component.test.tsx:80:7)\n at Promise.then.completed (/Users/merwanehamadi/code/flywheel/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise (<anonymous>)\n at callAsyncCircusFn (/Users/merwanehamadi/code/flywheel/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/merwanehamadi/code/flywheel/node_modules/jest-circus/build/run.js:316:40)\n at _runTest (/Users/merwanehamadi/code/flywheel/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/merwanehamadi/code/flywheel/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/merwanehamadi/code/flywheel/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/merwanehamadi/code/flywheel/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/merwanehamadi/code/flywheel/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/merwanehamadi/code/flywheel/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n at runTestInternal (/Users/merwanehamadi/code/flywheel/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/merwanehamadi/code/flywheel/node_modules/jest-runner/build/runTest.js:444:34)"],"fullName":"TextCompletionButton Component should render chat bar at the bottom and allow submission with Enter key","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"failed","title":"should render chat bar at the bottom and allow submission with Enter key"}],"endTime":1696201025547,"message":" ● TextCompletionButton Component › should hit the /text_completions endpoint when clicked\n\n expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\n Expected: \"http://localhost:8000/v1/b1/text_completions/\", ObjectContaining {\"body\": \"{\\\"input\\\":\\\"What's the capital of America?\\\"}\", \"headers\": {\"Content-Type\": \"application/json\"}, \"method\": \"POST\"}\n\n Number of calls: 0\n\n Ignored nodes: comments, script, style\n <html>\n <head />\n <body>\n <div>\n <div>\n <button>\n Create Text Completion\n </button>\n <input\n aria-label=\"chat input\"\n placeholder=\"Type your message here...\"\n type=\"text\"\n />\n </div>\n </div>\n </body>\n </html>\n\n 33 |\n 34 | await waitFor(() => {\n > 35 | expect(global.fetch).toHaveBeenCalledWith(\n | ^\n 36 | 'http://localhost:8000/v1/b1/text_completions/',\n 37 | expect.objectContaining({\n 38 | method: 'POST',\n\n at toHaveBeenCalledWith (pages/text_completer/v1/Component.test.tsx:35:28)\n at runWithExpensiveErrorDiagnosticsDisabled (node_modules/@testing-library/dom/dist/config.js:47:12)\n at checkCallback (node_modules/@testing-library/dom/dist/wait-for.js:123:77)\n at checkRealTimersCallback (node_modules/@testing-library/dom/dist/wait-for.js:117:16)\n at Timeout.task [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:520:19)\n\n ● TextCompletionButton Component › should render chat bar at the bottom and allow submission with Enter key\n\n expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\n Expected: called with 0 arguments\n\n Number of calls: 0\n\n 78 | expect(\n 79 | global.fetch,\n > 80 | ).toHaveBeenCalledWith(/* your expected fetch parameters using inputContent */);\n | ^\n 81 |\n 82 | // Optionally, if you want to check the content at the top, assuming it's a div or some container\n 83 | const topContent = screen.getByRole('region', { name: /top content/i }); // using aria-label or similar for the top content area\n\n at Object.toHaveBeenCalledWith (pages/text_completer/v1/Component.test.tsx:80:7)\n","name":"/Users/merwanehamadi/code/flywheel/pages/text_completer/v1/Component.test.tsx","startTime":1696201024325,"status":"failed","summary":""}],"wasInterrupted":false}