@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 +1 -2
- package/dist/index.cjs +43 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +17 -0
- package/dist/jest/config/package.cjs +41 -0
- package/{declarations.d.ts → dist/jest/config/package.d.cts} +3 -12
- package/dist/jest/config/package.d.ts +15 -0
- package/dist/jest/config/package.js +17 -0
- package/dist/jest/config/preset.cjs +59 -0
- package/dist/jest/config/preset.d.cts +163 -0
- package/dist/jest/config/preset.d.ts +163 -0
- package/{jest → dist/jest/config}/preset.js +13 -10
- package/{index.js → dist/jest/config/workspace.cjs} +28 -21
- package/dist/jest/config/workspace.d.cts +48 -0
- package/dist/jest/config/workspace.d.ts +48 -0
- package/{jest/workspace.config.ts → dist/jest/config/workspace.js} +9 -21
- package/dist/jest/file-transformer.cjs +33 -0
- package/dist/jest/file-transformer.d.cts +7 -0
- package/dist/jest/file-transformer.d.ts +7 -0
- package/dist/jest/file-transformer.js +13 -0
- package/dist/jest/setup.cjs +3 -0
- package/dist/jest/setup.d.cts +2 -0
- package/dist/jest/setup.d.ts +2 -0
- package/dist/jest/setup.js +3 -0
- package/package.json +97 -6
- package/CHANGELOG.md +0 -4088
- package/jest/file-transformer.js +0 -9
- package/jest/package.config.ts +0 -35
- package/jest/setup.js +0 -3
- /package/{jest → dist/jest}/__mocks__/file.mock.js +0 -0
- /package/{jest → dist/jest}/__mocks__/style.mock.js +0 -0
package/jest/file-transformer.js
DELETED
package/jest/package.config.ts
DELETED
|
@@ -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
|
File without changes
|
|
File without changes
|