/
githubmirror
/
strapi
Обзор
Документация
Войти
/
githubmirror
/
strapi
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
tests/utils/index.js
26 строк
629 B
Ben Irvin
security: upgrade to tar 7 (#25380)
11 фев 2026, 12:59
Не верифицирован
11 фев 2026, 12:59
1500b7c
Код
Авторство
О чём код?
'use strict'; // Export utilities for CLI tests // Note: We lazy-load helpers to avoid importing heavy dependencies when Jest loads test files const { getTestApps } = require('./get-test-apps'); // Lazy load helpers to avoid triggering imports of create-strapi-app let helpersCache = null; const getHelpers = () => { if (!helpersCache) { helpersCache = require('./helpers'); } return helpersCache; }; module.exports = { fs: require('./fs'), seed: require('./dts-import'), instances: { getTestApps, }, getDbState: require('./get-db-state').getDbState, get helpers() { return getHelpers(); }, };