SILENT KILLERPanel

Current Path: > home > codekrsu > > ameliagraphics.com > > wp-content > plugins > extendify


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//ameliagraphics.com//wp-content/plugins/extendify

NameTypeSizeLast ModifiedActions
app Directory - -
languages Directory - -
lib Directory - -
public Directory - -
routes Directory - -
src Directory - -
vendor Directory - -
.gitattributes File 110 bytes November 14 2023 08:13:36.
LICENSE File 18046 bytes January 06 2022 23:08:32.
bootstrap.php File 5916 bytes May 22 2025 22:26:12.
extendify.php File 5858 bytes July 16 2025 19:39:24.
jest.config.js File 1492 bytes May 12 2025 16:42:28.
jest.setup.js File 491 bytes May 12 2025 16:42:28.
readme.txt File 17303 bytes July 16 2025 19:39:24.

Reading File: /home/codekrsu//ameliagraphics.com//wp-content/plugins/extendify/jest.config.js

const defaultConfig = require('@wordpress/scripts/config/jest-unit.config.js');
const webpackConfig = require('./webpack.config.js');

// Extract aliases from webpack config
const webpackAliases = webpackConfig.resolve.alias || {};

// Convert webpack aliases to Jest moduleNameMapper format
// Webpack uses @ prefix with paths, Jest needs regex patterns
const convertAliasesToModuleNameMapper = (aliases) => {
	return Object.entries(aliases).reduce((moduleNameMapper, [alias, path]) => {
		// Convert webpack alias to Jest moduleNameMapper format
		// e.g., @library -> ^@library/(.*)$
		const aliasKey = `^${alias}/(.*)$`;

		// Convert absolute path to relative path that Jest expects
		// Remove any __dirname references and ensure path ends with /$1
		const aliasPath = path.replace(/.*?(?=src)/, '<rootDir>/') + '/$1';

		moduleNameMapper[aliasKey] = aliasPath;
		return moduleNameMapper;
	}, {});
};

// Create Jest moduleNameMapper from webpack aliases
const aliasesModuleNameMapper =
	convertAliasesToModuleNameMapper(webpackAliases);

// Special case for @constants which doesn't have a trailing slash in imports
if (webpackAliases['@constants']) {
	const constantsPath = webpackAliases['@constants'].replace(
		/.*?(?=src)/,
		'<rootDir>/',
	);
	aliasesModuleNameMapper['^@constants$'] = constantsPath;
}

module.exports = {
	...defaultConfig,
	moduleNameMapper: {
		...defaultConfig.moduleNameMapper,
		...aliasesModuleNameMapper,
	},
	setupFiles: ['<rootDir>/jest.setup.js'],
};

SILENT KILLER Tool