/
githubmirror
/
strapi
Обзор
Документация
Войти
/
githubmirror
/
strapi
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
tests/migration/fixture/checks/nested-component-parity.ts
27 строк
789 B
Ben Irvin
test(migration): version migration testing framework (#26060)
06 авг 2026, 15:39
Не верифицирован
06 авг 2026, 15:39
ac0c928
Код
Авторство
О чём код?
const { validateNestedComponentRelationParityForUid } = require('../check-impl'); type Strapi = import('@strapi/types').Core.Strapi; type ActiveEntry = { uid: string; label: string; checks?: string[] }; module.exports = { id: 'nestedComponentParity', title: 'Nested component relation parity', async run({ strapi, activeEntries }: { strapi: Strapi; activeEntries: ActiveEntry[] }) { const errors: string[] = []; for (const entry of activeEntries) { if (!entry.checks?.includes('nestedComponentParity')) { continue; } const result = await validateNestedComponentRelationParityForUid( strapi, entry.uid, entry.label ); errors.push(...result.errors); } return { errors, lines: [] as string[] }; }, };