// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. module.exports = { transformIgnorePatterns: [ // We reference the ESM output from tests and don't want to run them through jest as it won't understand the syntax ".*/node_modules/(?!@aspnet)" ], globals: { "ts-jest": { "tsConfigFile": "../tsconfig.jest.json", "skipBabel": true, // Needed in order to properly process the JS files // We run 'tsc --noEmit' to get TS diagnostics before the test instead "enableTsDiagnostics": false, } }, reporters: [ "default", ["../common/node_modules/jest-junit/index.js", { "output": "../../../artifacts/logs/" + `${process.platform}` + ".node.functional.junit.xml" }] ], transform: { "^.+\\.(jsx?|tsx?)$": "../common/node_modules/ts-jest" }, testEnvironment: "node", testRegex: "(Tests)\\.(jsx?|tsx?)$", moduleNameMapper: { "^ts-jest$": "/../common/node_modules/ts-jest", "^@aspnet/signalr$": "/../signalr/dist/cjs/index.js" }, moduleFileExtensions: [ "ts", "tsx", "js", "jsx", "json", "node" ] };