mirror of
https://github.com/strapi/strapi.git
synced 2026-05-03 16:22:30 +00:00
27 lines
629 B
JavaScript
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();
|
|
},
|
|
};
|