Skip to content

Commit 825a1ad

Browse files
fix(tests): starter source imports every test helper
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EHGBgHrtePpi7KMrEfy41R
1 parent e942dd4 commit 825a1ad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/sim/lib/workflow-tests/definition.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export function testSourceHash(source: string): string {
5959
/** The source `tests create` starts a test file with: one empty describe, ready for cases. */
6060
export function starterTestSource(title: string): string {
6161
return [
62-
"import { describe, expect, it } from 'vitest'",
63-
"import { mockBlock, runWorkflow, spyOnBlock } from 'sim:test'",
62+
"import { describe, expect, it, vi } from 'vitest'",
63+
"import { mockBlock, mockTool, runWorkflow, spyOnBlock } from 'sim:test'",
6464
'',
6565
`describe(${JSON.stringify(title)}, () => {})`,
6666
'',

0 commit comments

Comments
 (0)