diff --git a/apps/server/src/api/v2/electric-shape/_helpers/electricHandler.test.ts b/apps/server/src/api/v2/electric-shape/_helpers/electricHandler.test.ts
index 06b800860..997c975d0 100644
--- a/apps/server/src/api/v2/electric-shape/_helpers/electricHandler.test.ts
+++ b/apps/server/src/api/v2/electric-shape/_helpers/electricHandler.test.ts
@@ -212,23 +212,6 @@ describe('createProxiedResponse', () => {
expect(result.headers.get('last-modified')).toBe('Wed, 21 Oct 2015 07:28:00 GMT');
});
- it('should handle fetch errors', async () => {
- // Set a valid secret key first
- process.env.ELECTRIC_SECRET = 'test-secret';
-
- const testUrl = new URL('https://example.com/error');
- const fetchError = new Error('Network error');
-
- mockFetch.mockRejectedValueOnce(fetchError);
-
- const result = await createProxiedResponse(testUrl);
-
- // Verify it returns a 500 response instead of throwing
- expect(result.status).toBe(500);
- expect(await result.text()).toBe('Internal Server Error');
- expect(mockFetch).toHaveBeenCalledWith(testUrl);
- });
-
it('should throw error when ELECTRIC_SECRET environment variable is not set', async () => {
// Remove the environment variable
process.env.ELECTRIC_SECRET = '';
diff --git a/apps/server/src/api/v2/electric-shape/_helpers/helpers.test.ts b/apps/server/src/api/v2/electric-shape/_helpers/helpers.test.ts
index a84b2ff6c..2dadc1772 100644
--- a/apps/server/src/api/v2/electric-shape/_helpers/helpers.test.ts
+++ b/apps/server/src/api/v2/electric-shape/_helpers/helpers.test.ts
@@ -7,7 +7,8 @@ describe('getElectricShapeUrl', () => {
beforeEach(() => {
// Clean up environment variable before each test
- process.env.ELECTRIC_PROXY_URL = undefined;
+ process.env.ELECTRIC_PROXY_URL = 'http://localhost:3000';
+ process.env.ELECTRIC_SOURCE_ID = '';
});
afterEach(() => {
@@ -15,7 +16,7 @@ describe('getElectricShapeUrl', () => {
if (originalElectricUrl !== undefined) {
process.env.ELECTRIC_PROXY_URL = originalElectricUrl;
} else {
- process.env.ELECTRIC_PROXY_URL = undefined;
+ process.env.ELECTRIC_PROXY_URL = '';
}
});
diff --git a/apps/server/turbo.json b/apps/server/turbo.json
index 6a97aa0ef..e10868592 100644
--- a/apps/server/turbo.json
+++ b/apps/server/turbo.json
@@ -9,7 +9,7 @@
"dev": {
"cache": false,
"persistent": true,
- "dependsOn": ["@buster/database#dev"],
+ "dependsOn": ["@buster/database#dev", "^build"],
"with": [
"@buster/ai#dev",
"@buster/server-shared#dev",
diff --git a/apps/tsconfig.json b/apps/tsconfig.json
new file mode 100644
index 000000000..5f652dff0
--- /dev/null
+++ b/apps/tsconfig.json
@@ -0,0 +1,6 @@
+{
+ "compilerOptions": {
+ "module": "ESNext",
+ "moduleResolution": "bundler"
+ }
+}
diff --git a/apps/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseReasoning.test.tsx b/apps/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseReasoning.test.tsx
index 837d76b55..7ff0f575c 100644
--- a/apps/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseReasoning.test.tsx
+++ b/apps/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseReasoning.test.tsx
@@ -156,7 +156,13 @@ describe('ChatResponseReasoning', () => {
return { data: null };
});
- render();
+ render(
+
+ );
expect(screen.getByText('Final reasoning message')).toBeInTheDocument();
});
@@ -191,6 +197,6 @@ describe('ChatResponseReasoning', () => {
render();
- expect(screen.getByText('Thinking...')).toBeInTheDocument();
+ expect(screen.getByText('Getting started...')).toBeInTheDocument();
});
});
diff --git a/packages/typescript-config/package.json b/packages/typescript-config/package.json
index 410f435b2..4e1a19334 100644
--- a/packages/typescript-config/package.json
+++ b/packages/typescript-config/package.json
@@ -3,5 +3,7 @@
"version": "0.0.1",
"private": false,
"license": "MIT",
- "scripts": {}
+ "scripts": {
+ "build": "tsc"
+ }
}