mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-19 16:55:02 +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> |
||
|---|---|---|
| .. | ||
| bin | ||
| scripts | ||
| src | ||
| templates | ||
| test | ||
| AGENTS.md | ||
| BREAKING-CHANGES.md | ||
| eslint.config.mjs | ||
| nodemon.json | ||
| package.json | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| vitest.config.base.ts | ||
| vitest.config.integration.testcontainers.ts | ||
| vitest.config.integration.ts | ||
| vitest.config.migration.testcontainers.ts | ||
| vitest.config.migration.ts | ||
| vitest.config.ts | ||
| vitest.tsc-entity-transform.ts | ||
| vitest.workspace-externals.ts | ||