Skip to content

Commit 2d5da6e

Browse files
Vikhyath MondretiVikhyath Mondreti
authored andcommitted
Merge branch 'staging' of github.com:simstudioai/sim into staging
2 parents 5d17ed8 + c43b039 commit 2d5da6e

File tree

4 files changed

+222
-229
lines changed

4 files changed

+222
-229
lines changed

apps/sim/app/api/function/execute/route.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ describe('Function Execute API Route', () => {
228228
})
229229
})
230230

231-
describe('Freestyle Execution', () => {
231+
describe.skip('Freestyle Execution', () => {
232232
it('should use Freestyle when API key is available', async () => {
233233
const req = createMockRequest('POST', {
234234
code: 'return "freestyle test"',
@@ -281,7 +281,7 @@ describe('Function Execute API Route', () => {
281281
})
282282

283283
describe('VM Execution', () => {
284-
it('should use VM when Freestyle API key is not available', async () => {
284+
it.skip('should use VM when Freestyle API key is not available', async () => {
285285
// Mock no Freestyle API key
286286
vi.doMock('@/lib/env', () => ({
287287
env: {
@@ -470,7 +470,7 @@ describe('Function Execute API - Template Variable Edge Cases', () => {
470470
mockCreateContext.mockReturnValue({})
471471
})
472472

473-
it('should handle nested template variables', async () => {
473+
it.skip('should handle nested template variables', async () => {
474474
mockFreestyleExecuteScript.mockResolvedValueOnce({
475475
result: 'environment-valueparam-value',
476476
logs: [],
@@ -495,7 +495,7 @@ describe('Function Execute API - Template Variable Edge Cases', () => {
495495
expect(data.output.result).toBe('environment-valueparam-value')
496496
})
497497

498-
it('should prioritize environment variables over params for {{}} syntax', async () => {
498+
it.skip('should prioritize environment variables over params for {{}} syntax', async () => {
499499
mockFreestyleExecuteScript.mockResolvedValueOnce({
500500
result: 'env-wins',
501501
logs: [],
@@ -521,7 +521,7 @@ describe('Function Execute API - Template Variable Edge Cases', () => {
521521
expect(data.output.result).toBe('env-wins')
522522
})
523523

524-
it('should handle missing template variables gracefully', async () => {
524+
it.skip('should handle missing template variables gracefully', async () => {
525525
mockFreestyleExecuteScript.mockResolvedValueOnce({
526526
result: '',
527527
logs: [],

0 commit comments

Comments
 (0)