@storm-software/testing-tools 1.111.16 → 1.112.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-1.111.14-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.111.16-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
40
40
 
41
41
  <!-- START doctoc -->
42
42
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
43
-
44
43
  ## Table of Contents
45
44
 
46
45
  - [Storm Testing Tools](#storm-testing-tools)
package/dist/index.cjs ADDED
@@ -0,0 +1,43 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/index.ts
20
+ var index_exports = {};
21
+ __export(index_exports, {
22
+ getJestConfig: () => getJestConfig
23
+ });
24
+ module.exports = __toCommonJS(index_exports);
25
+
26
+ // src/jest/config/package.ts
27
+ var import_node_path = require("path");
28
+ function getJestConfig(projectDir, isNode = true, displayName) {
29
+ return {
30
+ displayName: displayName ? displayName : projectDir.replaceAll("\\", "-").replaceAll("/", "-"),
31
+ preset: "@storm-software/testing-tools/jest/preset",
32
+ testEnvironment: isNode ? "node" : "jsdom",
33
+ transform: {
34
+ "^.+\\.[tj]s$": ["ts-jest", { tsconfig: "<rootDir>/tsconfig.spec.json" }]
35
+ },
36
+ moduleFileExtensions: ["ts", "js", "html"],
37
+ coverageDirectory: (0, import_node_path.join)("../../coverage", projectDir)
38
+ };
39
+ }
40
+ // Annotate the CommonJS export names for ESM import in node:
41
+ 0 && (module.exports = {
42
+ getJestConfig
43
+ });
@@ -0,0 +1,2 @@
1
+ export { getJestConfig } from './jest/config/package.cjs';
2
+ import 'jest';
@@ -0,0 +1,2 @@
1
+ export { getJestConfig } from './jest/config/package.js';
2
+ import 'jest';
package/dist/index.js ADDED
@@ -0,0 +1,17 @@
1
+ // src/jest/config/package.ts
2
+ import { join } from "node:path";
3
+ function getJestConfig(projectDir, isNode = true, displayName) {
4
+ return {
5
+ displayName: displayName ? displayName : projectDir.replaceAll("\\", "-").replaceAll("/", "-"),
6
+ preset: "@storm-software/testing-tools/jest/preset",
7
+ testEnvironment: isNode ? "node" : "jsdom",
8
+ transform: {
9
+ "^.+\\.[tj]s$": ["ts-jest", { tsconfig: "<rootDir>/tsconfig.spec.json" }]
10
+ },
11
+ moduleFileExtensions: ["ts", "js", "html"],
12
+ coverageDirectory: join("../../coverage", projectDir)
13
+ };
14
+ }
15
+ export {
16
+ getJestConfig
17
+ };
@@ -0,0 +1,41 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/jest/config/package.ts
20
+ var package_exports = {};
21
+ __export(package_exports, {
22
+ getJestConfig: () => getJestConfig
23
+ });
24
+ module.exports = __toCommonJS(package_exports);
25
+ var import_node_path = require("path");
26
+ function getJestConfig(projectDir, isNode = true, displayName) {
27
+ return {
28
+ displayName: displayName ? displayName : projectDir.replaceAll("\\", "-").replaceAll("/", "-"),
29
+ preset: "@storm-software/testing-tools/jest/preset",
30
+ testEnvironment: isNode ? "node" : "jsdom",
31
+ transform: {
32
+ "^.+\\.[tj]s$": ["ts-jest", { tsconfig: "<rootDir>/tsconfig.spec.json" }]
33
+ },
34
+ moduleFileExtensions: ["ts", "js", "html"],
35
+ coverageDirectory: (0, import_node_path.join)("../../coverage", projectDir)
36
+ };
37
+ }
38
+ // Annotate the CommonJS export names for ESM import in node:
39
+ 0 && (module.exports = {
40
+ getJestConfig
41
+ });
@@ -1,10 +1,4 @@
1
- import type { Config } from "jest";
2
-
3
- /**
4
- * Config for Jest unit tests
5
- *
6
- * https://jestjs.io/docs/configuration#projects-arraystring--projectconfig
7
- */
1
+ import { Config } from 'jest';
8
2
 
9
3
  /**
10
4
  * Config for Jest unit tests
@@ -16,9 +10,6 @@ import type { Config } from "jest";
16
10
  * @param displayName The name to display in the Jest output
17
11
  * @returns The Jest configuration
18
12
  */
19
- declare function getJestConfig(
20
- projectDir: string,
21
- isNode?: boolean,
22
- displayName?: string,
23
- ): Config;
13
+ declare function getJestConfig(projectDir: string, isNode?: boolean, displayName?: string): Config;
14
+
24
15
  export { getJestConfig };
@@ -0,0 +1,15 @@
1
+ import { Config } from 'jest';
2
+
3
+ /**
4
+ * Config for Jest unit tests
5
+ *
6
+ * @remarks Please see [the Jest documentation](https://jestjs.io/docs/configuration#projects-arraystring--projectconfig) for more information.
7
+ *
8
+ * @param projectDir The directory of the project
9
+ * @param isNode Whether the project is a Node project
10
+ * @param displayName The name to display in the Jest output
11
+ * @returns The Jest configuration
12
+ */
13
+ declare function getJestConfig(projectDir: string, isNode?: boolean, displayName?: string): Config;
14
+
15
+ export { getJestConfig };
@@ -0,0 +1,17 @@
1
+ // src/jest/config/package.ts
2
+ import { join } from "node:path";
3
+ function getJestConfig(projectDir, isNode = true, displayName) {
4
+ return {
5
+ displayName: displayName ? displayName : projectDir.replaceAll("\\", "-").replaceAll("/", "-"),
6
+ preset: "@storm-software/testing-tools/jest/preset",
7
+ testEnvironment: isNode ? "node" : "jsdom",
8
+ transform: {
9
+ "^.+\\.[tj]s$": ["ts-jest", { tsconfig: "<rootDir>/tsconfig.spec.json" }]
10
+ },
11
+ moduleFileExtensions: ["ts", "js", "html"],
12
+ coverageDirectory: join("../../coverage", projectDir)
13
+ };
14
+ }
15
+ export {
16
+ getJestConfig
17
+ };
@@ -0,0 +1,59 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/jest/config/preset.ts
30
+ var preset_exports = {};
31
+ __export(preset_exports, {
32
+ default: () => preset_default
33
+ });
34
+ module.exports = __toCommonJS(preset_exports);
35
+ var import_preset = __toESM(require("@nx/jest/preset"), 1);
36
+ var preset_default = {
37
+ ...import_preset.default,
38
+ collectCoverage: true,
39
+ testTimeout: 3e4,
40
+ clearMocks: true,
41
+ testMatch: ["**/+(*.)+(spec|test).+(ts|js)?(x)"],
42
+ transform: {
43
+ "^.+\\.(ts|js|html)$": "ts-jest"
44
+ },
45
+ snapshotFormat: {
46
+ printBasicPrototype: false
47
+ },
48
+ globals: {
49
+ "ts-jest": {
50
+ isolatedModules: true,
51
+ diagnostics: {
52
+ exclude: ["**"]
53
+ }
54
+ }
55
+ },
56
+ moduleFileExtensions: ["ts", "js", "html"],
57
+ coverageReporters: ["json", "lcov", "text", "clover", "text-summary", "html"],
58
+ maxWorkers: 1
59
+ };
@@ -0,0 +1,163 @@
1
+ declare const _default: {
2
+ collectCoverage: boolean;
3
+ testTimeout: number;
4
+ clearMocks: boolean;
5
+ testMatch: string[];
6
+ transform: {
7
+ "^.+\\.(ts|js|html)$": string;
8
+ };
9
+ snapshotFormat: {
10
+ printBasicPrototype: boolean;
11
+ };
12
+ globals: {
13
+ "ts-jest": {
14
+ isolatedModules: boolean;
15
+ diagnostics: {
16
+ exclude: string[];
17
+ };
18
+ };
19
+ };
20
+ moduleFileExtensions: string[];
21
+ coverageReporters: string[];
22
+ maxWorkers: number;
23
+ automock?: boolean | undefined;
24
+ bail?: number | boolean | undefined;
25
+ cache?: boolean | undefined;
26
+ cacheDirectory?: string | undefined;
27
+ ci?: boolean | undefined;
28
+ changedFilesWithAncestor?: boolean | undefined;
29
+ changedSince?: string | undefined;
30
+ collectCoverageFrom?: string[] | undefined;
31
+ coverageDirectory?: string | undefined;
32
+ coveragePathIgnorePatterns?: string[] | undefined;
33
+ coverageProvider?: "babel" | "v8" | undefined;
34
+ coverageThreshold?: {
35
+ [path: string]: {
36
+ branches?: number | undefined;
37
+ functions?: number | undefined;
38
+ lines?: number | undefined;
39
+ statements?: number | undefined;
40
+ };
41
+ global: {
42
+ branches?: number | undefined;
43
+ functions?: number | undefined;
44
+ lines?: number | undefined;
45
+ statements?: number | undefined;
46
+ };
47
+ } | undefined;
48
+ dependencyExtractor?: string | undefined;
49
+ detectLeaks?: boolean | undefined;
50
+ detectOpenHandles?: boolean | undefined;
51
+ displayName?: string | {
52
+ name: string;
53
+ color: "black" | "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white" | "gray" | "grey" | "blackBright" | "redBright" | "greenBright" | "yellowBright" | "blueBright" | "magentaBright" | "cyanBright" | "whiteBright";
54
+ } | undefined;
55
+ expand?: boolean | undefined;
56
+ extensionsToTreatAsEsm?: string[] | undefined;
57
+ fakeTimers?: ({
58
+ enableGlobally?: boolean | undefined;
59
+ } & ({
60
+ advanceTimers?: number | boolean | undefined;
61
+ doNotFake?: ("Date" | "hrtime" | "nextTick" | "performance" | "queueMicrotask" | "requestAnimationFrame" | "cancelAnimationFrame" | "requestIdleCallback" | "cancelIdleCallback" | "setImmediate" | "clearImmediate" | "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout")[] | undefined;
62
+ now?: number | undefined;
63
+ timerLimit?: number | undefined;
64
+ legacyFakeTimers?: false | undefined;
65
+ } | {
66
+ legacyFakeTimers?: true | undefined;
67
+ })) | undefined;
68
+ filter?: string | undefined;
69
+ findRelatedTests?: boolean | undefined;
70
+ forceCoverageMatch?: string[] | undefined;
71
+ forceExit?: boolean | undefined;
72
+ json?: boolean | undefined;
73
+ globalSetup?: string | null | undefined;
74
+ globalTeardown?: string | null | undefined;
75
+ haste?: {
76
+ computeSha1?: boolean | undefined;
77
+ defaultPlatform?: string | null | undefined;
78
+ forceNodeFilesystemAPI?: boolean | undefined;
79
+ enableSymlinks?: boolean | undefined;
80
+ hasteImplModulePath?: string | undefined;
81
+ platforms?: string[] | undefined;
82
+ throwOnModuleCollision?: boolean | undefined;
83
+ hasteMapModulePath?: string | undefined;
84
+ retainAllFiles?: boolean | undefined;
85
+ } | undefined;
86
+ id?: string | undefined;
87
+ injectGlobals?: boolean | undefined;
88
+ reporters?: (string | [string, {
89
+ [x: string]: unknown;
90
+ }])[] | undefined;
91
+ logHeapUsage?: boolean | undefined;
92
+ lastCommit?: boolean | undefined;
93
+ listTests?: boolean | undefined;
94
+ maxConcurrency?: number | undefined;
95
+ moduleDirectories?: string[] | undefined;
96
+ moduleNameMapper?: {
97
+ [x: string]: string | string[];
98
+ } | undefined;
99
+ modulePathIgnorePatterns?: string[] | undefined;
100
+ modulePaths?: string[] | undefined;
101
+ noStackTrace?: boolean | undefined;
102
+ notify?: boolean | undefined;
103
+ notifyMode?: string | undefined;
104
+ onlyChanged?: boolean | undefined;
105
+ onlyFailures?: boolean | undefined;
106
+ openHandlesTimeout?: number | undefined;
107
+ outputFile?: string | undefined;
108
+ passWithNoTests?: boolean | undefined;
109
+ preset?: string | null | undefined;
110
+ prettierPath?: string | null | undefined;
111
+ projects?: (string | {
112
+ [x: string]: unknown;
113
+ })[] | undefined;
114
+ randomize?: boolean | undefined;
115
+ replname?: string | null | undefined;
116
+ resetMocks?: boolean | undefined;
117
+ resetModules?: boolean | undefined;
118
+ resolver?: string | null | undefined;
119
+ restoreMocks?: boolean | undefined;
120
+ rootDir?: string | undefined;
121
+ roots?: string[] | undefined;
122
+ runner?: string | undefined;
123
+ runTestsByPath?: boolean | undefined;
124
+ runtime?: string | undefined;
125
+ sandboxInjectedGlobals?: string[] | undefined;
126
+ setupFiles?: string[] | undefined;
127
+ setupFilesAfterEnv?: string[] | undefined;
128
+ showSeed?: boolean | undefined;
129
+ silent?: boolean | undefined;
130
+ skipFilter?: boolean | undefined;
131
+ skipNodeResolution?: boolean | undefined;
132
+ slowTestThreshold?: number | undefined;
133
+ snapshotResolver?: string | undefined;
134
+ snapshotSerializers?: string[] | undefined;
135
+ errorOnDeprecated?: boolean | undefined;
136
+ testEnvironment?: string | undefined;
137
+ testEnvironmentOptions?: {
138
+ [x: string]: unknown;
139
+ } | undefined;
140
+ testFailureExitCode?: number | undefined;
141
+ testLocationInResults?: boolean | undefined;
142
+ testNamePattern?: string | undefined;
143
+ testPathIgnorePatterns?: string[] | undefined;
144
+ testRegex?: string | string[] | undefined;
145
+ testResultsProcessor?: string | undefined;
146
+ testRunner?: string | undefined;
147
+ testSequencer?: string | undefined;
148
+ transformIgnorePatterns?: string[] | undefined;
149
+ watchPathIgnorePatterns?: string[] | undefined;
150
+ unmockedModulePathPatterns?: string[] | undefined;
151
+ updateSnapshot?: boolean | undefined;
152
+ useStderr?: boolean | undefined;
153
+ verbose?: boolean | undefined;
154
+ waitForUnhandledRejections?: boolean | undefined;
155
+ watch?: boolean | undefined;
156
+ watchAll?: boolean | undefined;
157
+ watchman?: boolean | undefined;
158
+ watchPlugins?: (string | [string, unknown])[] | undefined;
159
+ workerIdleMemoryLimit?: string | number | undefined;
160
+ workerThreads?: boolean | undefined;
161
+ };
162
+
163
+ export { _default as default };
@@ -0,0 +1,163 @@
1
+ declare const _default: {
2
+ collectCoverage: boolean;
3
+ testTimeout: number;
4
+ clearMocks: boolean;
5
+ testMatch: string[];
6
+ transform: {
7
+ "^.+\\.(ts|js|html)$": string;
8
+ };
9
+ snapshotFormat: {
10
+ printBasicPrototype: boolean;
11
+ };
12
+ globals: {
13
+ "ts-jest": {
14
+ isolatedModules: boolean;
15
+ diagnostics: {
16
+ exclude: string[];
17
+ };
18
+ };
19
+ };
20
+ moduleFileExtensions: string[];
21
+ coverageReporters: string[];
22
+ maxWorkers: number;
23
+ automock?: boolean | undefined;
24
+ bail?: number | boolean | undefined;
25
+ cache?: boolean | undefined;
26
+ cacheDirectory?: string | undefined;
27
+ ci?: boolean | undefined;
28
+ changedFilesWithAncestor?: boolean | undefined;
29
+ changedSince?: string | undefined;
30
+ collectCoverageFrom?: string[] | undefined;
31
+ coverageDirectory?: string | undefined;
32
+ coveragePathIgnorePatterns?: string[] | undefined;
33
+ coverageProvider?: "babel" | "v8" | undefined;
34
+ coverageThreshold?: {
35
+ [path: string]: {
36
+ branches?: number | undefined;
37
+ functions?: number | undefined;
38
+ lines?: number | undefined;
39
+ statements?: number | undefined;
40
+ };
41
+ global: {
42
+ branches?: number | undefined;
43
+ functions?: number | undefined;
44
+ lines?: number | undefined;
45
+ statements?: number | undefined;
46
+ };
47
+ } | undefined;
48
+ dependencyExtractor?: string | undefined;
49
+ detectLeaks?: boolean | undefined;
50
+ detectOpenHandles?: boolean | undefined;
51
+ displayName?: string | {
52
+ name: string;
53
+ color: "black" | "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white" | "gray" | "grey" | "blackBright" | "redBright" | "greenBright" | "yellowBright" | "blueBright" | "magentaBright" | "cyanBright" | "whiteBright";
54
+ } | undefined;
55
+ expand?: boolean | undefined;
56
+ extensionsToTreatAsEsm?: string[] | undefined;
57
+ fakeTimers?: ({
58
+ enableGlobally?: boolean | undefined;
59
+ } & ({
60
+ advanceTimers?: number | boolean | undefined;
61
+ doNotFake?: ("Date" | "hrtime" | "nextTick" | "performance" | "queueMicrotask" | "requestAnimationFrame" | "cancelAnimationFrame" | "requestIdleCallback" | "cancelIdleCallback" | "setImmediate" | "clearImmediate" | "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout")[] | undefined;
62
+ now?: number | undefined;
63
+ timerLimit?: number | undefined;
64
+ legacyFakeTimers?: false | undefined;
65
+ } | {
66
+ legacyFakeTimers?: true | undefined;
67
+ })) | undefined;
68
+ filter?: string | undefined;
69
+ findRelatedTests?: boolean | undefined;
70
+ forceCoverageMatch?: string[] | undefined;
71
+ forceExit?: boolean | undefined;
72
+ json?: boolean | undefined;
73
+ globalSetup?: string | null | undefined;
74
+ globalTeardown?: string | null | undefined;
75
+ haste?: {
76
+ computeSha1?: boolean | undefined;
77
+ defaultPlatform?: string | null | undefined;
78
+ forceNodeFilesystemAPI?: boolean | undefined;
79
+ enableSymlinks?: boolean | undefined;
80
+ hasteImplModulePath?: string | undefined;
81
+ platforms?: string[] | undefined;
82
+ throwOnModuleCollision?: boolean | undefined;
83
+ hasteMapModulePath?: string | undefined;
84
+ retainAllFiles?: boolean | undefined;
85
+ } | undefined;
86
+ id?: string | undefined;
87
+ injectGlobals?: boolean | undefined;
88
+ reporters?: (string | [string, {
89
+ [x: string]: unknown;
90
+ }])[] | undefined;
91
+ logHeapUsage?: boolean | undefined;
92
+ lastCommit?: boolean | undefined;
93
+ listTests?: boolean | undefined;
94
+ maxConcurrency?: number | undefined;
95
+ moduleDirectories?: string[] | undefined;
96
+ moduleNameMapper?: {
97
+ [x: string]: string | string[];
98
+ } | undefined;
99
+ modulePathIgnorePatterns?: string[] | undefined;
100
+ modulePaths?: string[] | undefined;
101
+ noStackTrace?: boolean | undefined;
102
+ notify?: boolean | undefined;
103
+ notifyMode?: string | undefined;
104
+ onlyChanged?: boolean | undefined;
105
+ onlyFailures?: boolean | undefined;
106
+ openHandlesTimeout?: number | undefined;
107
+ outputFile?: string | undefined;
108
+ passWithNoTests?: boolean | undefined;
109
+ preset?: string | null | undefined;
110
+ prettierPath?: string | null | undefined;
111
+ projects?: (string | {
112
+ [x: string]: unknown;
113
+ })[] | undefined;
114
+ randomize?: boolean | undefined;
115
+ replname?: string | null | undefined;
116
+ resetMocks?: boolean | undefined;
117
+ resetModules?: boolean | undefined;
118
+ resolver?: string | null | undefined;
119
+ restoreMocks?: boolean | undefined;
120
+ rootDir?: string | undefined;
121
+ roots?: string[] | undefined;
122
+ runner?: string | undefined;
123
+ runTestsByPath?: boolean | undefined;
124
+ runtime?: string | undefined;
125
+ sandboxInjectedGlobals?: string[] | undefined;
126
+ setupFiles?: string[] | undefined;
127
+ setupFilesAfterEnv?: string[] | undefined;
128
+ showSeed?: boolean | undefined;
129
+ silent?: boolean | undefined;
130
+ skipFilter?: boolean | undefined;
131
+ skipNodeResolution?: boolean | undefined;
132
+ slowTestThreshold?: number | undefined;
133
+ snapshotResolver?: string | undefined;
134
+ snapshotSerializers?: string[] | undefined;
135
+ errorOnDeprecated?: boolean | undefined;
136
+ testEnvironment?: string | undefined;
137
+ testEnvironmentOptions?: {
138
+ [x: string]: unknown;
139
+ } | undefined;
140
+ testFailureExitCode?: number | undefined;
141
+ testLocationInResults?: boolean | undefined;
142
+ testNamePattern?: string | undefined;
143
+ testPathIgnorePatterns?: string[] | undefined;
144
+ testRegex?: string | string[] | undefined;
145
+ testResultsProcessor?: string | undefined;
146
+ testRunner?: string | undefined;
147
+ testSequencer?: string | undefined;
148
+ transformIgnorePatterns?: string[] | undefined;
149
+ watchPathIgnorePatterns?: string[] | undefined;
150
+ unmockedModulePathPatterns?: string[] | undefined;
151
+ updateSnapshot?: boolean | undefined;
152
+ useStderr?: boolean | undefined;
153
+ verbose?: boolean | undefined;
154
+ waitForUnhandledRejections?: boolean | undefined;
155
+ watch?: boolean | undefined;
156
+ watchAll?: boolean | undefined;
157
+ watchman?: boolean | undefined;
158
+ watchPlugins?: (string | [string, unknown])[] | undefined;
159
+ workerIdleMemoryLimit?: string | number | undefined;
160
+ workerThreads?: boolean | undefined;
161
+ };
162
+
163
+ export { _default as default };
@@ -1,26 +1,29 @@
1
- const nxPreset = require("@nx/jest/preset").default;
2
-
3
- module.exports = {
1
+ // src/jest/config/preset.ts
2
+ import nxPreset from "@nx/jest/preset";
3
+ var preset_default = {
4
4
  ...nxPreset,
5
5
  collectCoverage: true,
6
- testTimeout: 30000,
6
+ testTimeout: 3e4,
7
7
  clearMocks: true,
8
8
  testMatch: ["**/+(*.)+(spec|test).+(ts|js)?(x)"],
9
9
  transform: {
10
- "^.+\\.(ts|js|html)$": "ts-jest",
10
+ "^.+\\.(ts|js|html)$": "ts-jest"
11
11
  },
12
12
  snapshotFormat: {
13
- printBasicPrototype: false,
13
+ printBasicPrototype: false
14
14
  },
15
15
  globals: {
16
16
  "ts-jest": {
17
17
  isolatedModules: true,
18
18
  diagnostics: {
19
- exclude: ["**"],
20
- },
21
- },
19
+ exclude: ["**"]
20
+ }
21
+ }
22
22
  },
23
23
  moduleFileExtensions: ["ts", "js", "html"],
24
24
  coverageReporters: ["json", "lcov", "text", "clover", "text-summary", "html"],
25
- maxWorkers: 1,
25
+ maxWorkers: 1
26
+ };
27
+ export {
28
+ preset_default as default
26
29
  };