Files
2026-02-11 11:59:03 +02:00

27 lines
629 B
JavaScript

'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();
},
};