mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-18 23:09:03 +02:00
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> |
||
|---|---|---|
| .. | ||
| integration | ||
| migration | ||
| shared | ||
| unit | ||
| extend-expect.ts | ||
| global-setup.ts | ||
| setup-encryption-key.ts | ||
| setup-migration-database.ts | ||
| setup-mocks.ts | ||
| setup-sqlite-template.ts | ||
| setup-test-folder.ts | ||
| setup-testcontainers.ts | ||