n8n/packages/cli/test
Charlie Kolb 027b366fd0
feat: Add snippets, reusable code callable from expressions and Code nodes
Snippets are named JS expressions (functions or constants) stored per
instance ($snippets.<name>) or per project ($project.<name>), usable in
expressions and the Code node across all three execution environments:
the legacy/browser expression engine, the isolated-vm engine (compiled
in-isolate from tournament-transformed sources), and the secure task
runner (compiled inside the vm sandbox, never as host closures).

Includes a snippets backend module (CRUD, snippet/projectSnippet RBAC
scopes, save-time compile validation, project ownership transfer),
delivery via additionalData snapshots, a settings UI with a dedicated
editor screen, per-snippet unit tests (left/expected expressions,
deep-compared, run in-browser through the same sandbox pipeline),
expression and Code node autocomplete, and TypeScript language support
with signatures inferred from real snippet sources — reused standalone
in the snippet editor itself.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-12 12:04:37 +02:00
..
integration feat: Add snippets, reusable code callable from expressions and Code nodes 2026-08-12 12:04:37 +02:00
migration feat(core): Add workflow review activity log tables and migration (no-changelog) (#35517) 2026-08-11 12:25:46 +00:00
shared feat(core): Add the workflow review activity feed (no-changelog) (#35791) 2026-08-11 14:20:01 +00:00
unit fix(core): Handle errors from triggered and polled workflow executions (#35689) 2026-08-06 13:07:01 +00:00
extend-expect.ts test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00
global-setup.ts chore: Remove references to Jest (#33282) 2026-07-01 09:03:25 +00:00
setup-mocks.ts test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00
setup-test-folder.ts chore: Initial V2 changes (#22553) 2025-12-01 20:44:59 +02:00
setup-testcontainers.ts test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00