fix: test fix for fetch package and publish version with improved error logging

This commit is contained in:
Nate 2025-07-16 16:08:06 -07:00
parent 961712353b
commit 87d55c5b4d
3 changed files with 4 additions and 4 deletions

View file

@ -1,12 +1,12 @@
{
"name": "@continuedev/fetch",
"version": "1.0.15",
"version": "1.0.16",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@continuedev/fetch",
"version": "1.0.15",
"version": "1.0.16",
"license": "Apache-2.0",
"dependencies": {
"@continuedev/config-types": "^1.0.5",

View file

@ -1,6 +1,6 @@
{
"name": "@continuedev/fetch",
"version": "1.0.15",
"version": "1.0.16",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View file

@ -86,7 +86,7 @@ describe("parseDataLine", () => {
test("parseDataLine should throw error when data contains error field", () => {
const line = 'data: {"error":"something went wrong"}';
expect(() => parseDataLine(line)).toThrow(
"Error streaming response: something went wrong",
'Error streaming response: "something went wrong"',
);
});