@storm-software/testing-tools 1.34.5 → 1.34.7
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/CHANGELOG.md +24 -0
- package/README.md +1 -1
- package/declarations.d.ts +20 -0
- package/index.cjs +2 -2
- package/index.js +1 -1
- package/jest/package.config.ts +4 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## 1.34.7 (2024-02-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🩹 Fixes
|
|
5
|
+
|
|
6
|
+
- **workspace-tools:** Resolve issue with tsconfig file resolution ([0254e50a](https://github.com/storm-software/storm-ops/commit/0254e50a))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ❤️ Thank You
|
|
10
|
+
|
|
11
|
+
- Patrick Sullivan
|
|
12
|
+
|
|
13
|
+
## 1.34.6 (2024-02-27)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### 🩹 Fixes
|
|
17
|
+
|
|
18
|
+
- **workspace-tools:** Dynamically load tsup module and resolve `testing-tools` type issues ([c1d51975](https://github.com/storm-software/storm-ops/commit/c1d51975))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### ❤️ Thank You
|
|
22
|
+
|
|
23
|
+
- Patrick Sullivan
|
|
24
|
+
|
|
1
25
|
## 1.34.5 (2024-02-27)
|
|
2
26
|
|
|
3
27
|
|
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
16
16
|
|
|
17
17
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
|
|
18
18
|
|
|
19
|
-
[](https://prettier.io/)
|
|
20
20
|
[](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://docusaurus.io/) 
|
|
21
21
|
|
|
22
22
|
> [!IMPORTANT]
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Config for Jest unit tests
|
|
11
|
+
*
|
|
12
|
+
* @remarks Please see [the Jest documentation](https://jestjs.io/docs/configuration#projects-arraystring--projectconfig) for more information.
|
|
13
|
+
*
|
|
14
|
+
* @param projectDir The directory of the project
|
|
15
|
+
* @param isNode Whether the project is a Node project
|
|
16
|
+
* @param displayName The name to display in the Jest output
|
|
17
|
+
* @returns The Jest configuration
|
|
18
|
+
*/
|
|
19
|
+
declare function getJestConfig(projectDir: string, isNode?: boolean, displayName?: string): Config;
|
|
20
|
+
export { getJestConfig };
|
package/index.cjs
CHANGED
|
@@ -25,7 +25,7 @@ __export(src_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(src_exports);
|
|
26
26
|
|
|
27
27
|
// packages/testing-tools/src/jest/package.config.ts
|
|
28
|
-
var
|
|
28
|
+
var import_node_path = require("node:path");
|
|
29
29
|
var getJestConfig = (projectDir, isNode = true, displayName) => ({
|
|
30
30
|
displayName: displayName ? displayName : projectDir.replaceAll("\\", "-").replaceAll("/", "-"),
|
|
31
31
|
preset: "@storm-software/testing-tools/jest/preset.js",
|
|
@@ -34,7 +34,7 @@ var getJestConfig = (projectDir, isNode = true, displayName) => ({
|
|
|
34
34
|
"^.+\\.[tj]s$": ["ts-jest", { tsconfig: "<rootDir>/tsconfig.spec.json" }]
|
|
35
35
|
},
|
|
36
36
|
moduleFileExtensions: ["ts", "js", "html"],
|
|
37
|
-
coverageDirectory: (0,
|
|
37
|
+
coverageDirectory: (0, import_node_path.join)("../../coverage", projectDir)
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
// packages/testing-tools/src/jest/workspace.config.ts
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// packages/testing-tools/src/jest/package.config.ts
|
|
2
|
-
import { join } from "path";
|
|
2
|
+
import { join } from "node:path";
|
|
3
3
|
var getJestConfig = (projectDir, isNode = true, displayName) => ({
|
|
4
4
|
displayName: displayName ? displayName : projectDir.replaceAll("\\", "-").replaceAll("/", "-"),
|
|
5
5
|
preset: "@storm-software/testing-tools/jest/preset.js",
|
package/jest/package.config.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { join } from "path";
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import type { Config } from "jest";
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Config for Jest unit tests
|
|
@@ -16,14 +17,8 @@ import { join } from "path";
|
|
|
16
17
|
* @param displayName The name to display in the Jest output
|
|
17
18
|
* @returns The Jest configuration
|
|
18
19
|
*/
|
|
19
|
-
export const getJestConfig = (
|
|
20
|
-
|
|
21
|
-
isNode = true,
|
|
22
|
-
displayName?: string
|
|
23
|
-
) => ({
|
|
24
|
-
displayName: displayName
|
|
25
|
-
? displayName
|
|
26
|
-
: projectDir.replaceAll("\\", "-").replaceAll("/", "-"),
|
|
20
|
+
export const getJestConfig = (projectDir: string, isNode = true, displayName?: string): Config => ({
|
|
21
|
+
displayName: displayName ? displayName : projectDir.replaceAll("\\", "-").replaceAll("/", "-"),
|
|
27
22
|
preset: "@storm-software/testing-tools/jest/preset.js",
|
|
28
23
|
testEnvironment: isNode ? "node" : "jsdom",
|
|
29
24
|
transform: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/testing-tools",
|
|
3
|
-
"version": "1.34.
|
|
3
|
+
"version": "1.34.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "⚡ A package containing various testing tools used by Storm workspaces to drive unit and e2e testing.",
|
|
6
6
|
"keywords": [
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"type": "commonjs",
|
|
32
32
|
"module": "./index.js",
|
|
33
|
-
"types": "./
|
|
33
|
+
"types": "./declarations.d.ts",
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@nx/jest": "18.0.4",
|
|
36
36
|
"jest": "29.7.0",
|