{
    "setupFilesAfterEnv": [
        "<rootDir>/setup-tests.js"
    ],
    "moduleFileExtensions": ["js", "jsx", "ts", "tsx"],
    "transform": {
        "^.+\\.m?[jt]sx?$": "babel-jest"
    },
    "moduleNameMapper": {
        "\\.((s?css)|jsw)$": "<rootDir>/jest-mocks/empty.js",
        "^src/(.*)$": "<rootDir>/src/$1",
        "^lib/(.*)$": "<rootDir>/lib/$1",
        "^node:fs/promises$": "<rootDir>/jest-node-shims/fs-promises.js",
        "^node:util$": "<rootDir>/jest-node-shims/util.js",
        "^node:crypto$": "<rootDir>/jest-node-shims/crypto.js",
        "^node:events$": "<rootDir>/jest-node-shims/events.js",
        "^node:fs$": "<rootDir>/jest-node-shims/fs.js",
        "^node:os$": "<rootDir>/jest-node-shims/os.js",
        "^node:path$": "<rootDir>/jest-node-shims/path.js",
        "^node:stream$": "<rootDir>/jest-node-shims/stream.js",
        "^node:string_decoder$": "<rootDir>/jest-node-shims/string_decoder.js",
        "p-queue": "<rootDir>/node_modules/p-queue/dist/index.js",
        "^lodash-es$": "<rootDir>/node_modules/lodash",
        "^@orchard/frontend-workstation$": "<rootDir>/jest-mocks/frontend-workstation.js"
    },
    "transformIgnorePatterns": [
        "node_modules/(?!(?:\\.pnpm/[^/]+/node_modules/)?(p-queue|p-retry|p-timeout|is-network-error|node-fetch|react-keyed-flatten-children|lodash-es)/)"
    ],
    "testPathIgnorePatterns": [
        "<rootDir>/build/",
        "<rootDir>/examples/",
        "<rootDir>/locale/",
        "<rootDir>/node_modules/",
        "<rootDir>/webserver/"
    ]
}
