@storm-software/testing-tools 1.111.17 → 1.112.1

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.
@@ -1,9 +0,0 @@
1
- const path = require("path");
2
-
3
- module.exports = {
4
- process(sourceText, sourcePath, options) {
5
- return {
6
- code: `module.exports = ${JSON.stringify(path.basename(sourcePath))};`,
7
- };
8
- },
9
- };
@@ -1,35 +0,0 @@
1
- import type { Config } from "jest";
2
- import { join } from "node:path";
3
-
4
- /**
5
- * Config for Jest unit tests
6
- *
7
- * https://jestjs.io/docs/configuration#projects-arraystring--projectconfig
8
- */
9
-
10
- /**
11
- * Config for Jest unit tests
12
- *
13
- * @remarks Please see [the Jest documentation](https://jestjs.io/docs/configuration#projects-arraystring--projectconfig) for more information.
14
- *
15
- * @param projectDir The directory of the project
16
- * @param isNode Whether the project is a Node project
17
- * @param displayName The name to display in the Jest output
18
- * @returns The Jest configuration
19
- */
20
- export const getJestConfig = (
21
- projectDir: string,
22
- isNode = true,
23
- displayName?: string,
24
- ): Config => ({
25
- displayName: displayName
26
- ? displayName
27
- : projectDir.replaceAll("\\", "-").replaceAll("/", "-"),
28
- preset: "@storm-software/testing-tools/jest/preset.js",
29
- testEnvironment: isNode ? "node" : "jsdom",
30
- transform: {
31
- "^.+\\.[tj]s$": ["ts-jest", { tsconfig: "<rootDir>/tsconfig.spec.json" }],
32
- },
33
- moduleFileExtensions: ["ts", "js", "html"],
34
- coverageDirectory: join("../../coverage", projectDir),
35
- });
package/jest/setup.js DELETED
@@ -1,3 +0,0 @@
1
- import { TextDecoder, TextEncoder } from "util";
2
-
3
- Object.assign(global, { TextDecoder, TextEncoder });
File without changes
File without changes