-
Notifications
You must be signed in to change notification settings - Fork 39
/
jest.config.ts
40 lines (35 loc) · 1.08 KB
/
jest.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { Config } from "jest";
import type { JestConfigWithTsJest } from "ts-jest";
import { createDefaultEsmPreset } from "ts-jest";
// Note that this preset and the moduleNameMapper are necessary to run test with ecmascript modules.
// See https://kulshekhar.github.io/ts-jest/docs/guides/esm-support/
const defaultEsmPreset = createDefaultEsmPreset();
const baseConfig: Config = {
...defaultEsmPreset,
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
},
testEnvironment: "node",
prettierPath: "prettier",
maxWorkers: 200,
testMatch: ["**/test/**/*Test.ts"],
};
const config: JestConfigWithTsJest = {
testTimeout: 240000,
maxConcurrency: 200,
projects: [
{
displayName: "azure-kusto-data",
rootDir: "packages/azure-kusto-data",
...baseConfig,
},
{
displayName: "azure-kusto-ingest",
rootDir: "packages/azure-kusto-ingest",
...baseConfig,
},
],
};
export default config;