n8n/packages/cli/test
Charlie Kolb fe5ce0d202
refactor(core): Move the scope checks and WorkflowFinderService into @n8n/backend-services (no-changelog)
Move userHasScopes, ProjectScopeService and WorkflowFinderService with
their tests. WorkflowFinderService is imported by 12 backend modules and
userHasScopes by 8.

userHasScopes resolves the project of a data table through the new
ScopedResourceResolverRegistry. The data-table module registers its
resolver on init, so check-access no longer imports the module.

Tests that mocked or spied on userHasScopes through the old path now
mock the package. A vi.mock with the actual implementation as default
and a mockReset before each test keeps the per-test behaviour of the
spies.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 16:28:49 +02:00
..
integration refactor(core): Move the scope checks and WorkflowFinderService into @n8n/backend-services (no-changelog) 2026-09-29 16:28:49 +02:00
migration feat(core): Add agent input boundaries and steering storage (no-changelog) (#39529) 2026-09-29 12:41:34 +00:00
shared refactor(core): Internalize cipher primitives (no-changelog) (#39148) 2026-09-22 08:08:02 +03: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-encryption-key.ts fix(core): Register the encryption key provider before any encrypt or decrypt (no-changelog) (#37972) 2026-09-07 17:04:39 +00:00
setup-migration-database.ts ci: Measure PR coverage only for changed source files (no-changelog) (#39675) 2026-09-28 08:49:46 +00:00
setup-mocks.ts test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00
setup-sqlite-template.ts ci: Measure PR coverage only for changed source files (no-changelog) (#39675) 2026-09-28 08:49:46 +00:00
setup-test-folder.ts chore: Initial V2 changes (#22553) 2025-12-01 20:44:59 +02:00
setup-testcontainers.ts feat(core): Run the instance-registry stale-member cleanup as a durable system task (no-changelog) (#38621) 2026-09-17 13:57:24 +00:00