MOON
Server: Apache
System: Linux server1.quantilytics.org 3.10.0-1160.119.1.el7.tuxcare.els21.x86_64 #1 SMP Tue Jun 17 03:11:12 UTC 2025 x86_64
User: hnhtennm (1016)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/hnhtennm/.vscode-server/extensions/shufo.vscode-blade-formatter-0.23.5/jest.config.ts
import type { Config } from "@jest/types";

const appRoot = require("app-root-path");

const config: Config.InitialOptions = {
    globals: {
        __basedir: appRoot.toString(),
        "ts-jest": {
            useESM: true,
        },
    },
    testMatch: ["**/__tests__/runTest.ts"],
    transform: {
        "^.+\\.(js|jsx)$": "babel-jest",
        "^.+\\.(ts|tsx)$": "ts-jest",
        "node_modules/variables/.+\\.(j|t)sx?$": "ts-jest",
    },
    transformIgnorePatterns: ["node_modules/(?!variables/.*)"],
    moduleNameMapper: {
        "^(\\.{1,2}/.*)\\.js$": "$1",
    },
    testEnvironment: "node",
    extensionsToTreatAsEsm: [".ts"],
    testTimeout: 10000,
    verbose: true,
    cache: false,
    preset: "ts-jest/presets/default-esm",
};

export default config;