@storm-software/testing-tools 1.34.4 → 1.34.6

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 CHANGED
@@ -1,3 +1,27 @@
1
+ ## 1.34.6 (2024-02-27)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **workspace-tools:** Dynamically load tsup module and resolve `testing-tools` type issues ([c1d51975](https://github.com/storm-software/storm-ops/commit/c1d51975))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
13
+ ## 1.34.5 (2024-02-27)
14
+
15
+
16
+ ### 🩹 Fixes
17
+
18
+ - **config-tools:** Update config packages to only use cjs ([75e4a16b](https://github.com/storm-software/storm-ops/commit/75e4a16b))
19
+
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - Patrick Sullivan
24
+
1
25
  ## 1.34.4 (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
- [![Version](https://img.shields.io/badge/version-1.34.3-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
19
+ [![Version](https://img.shields.io/badge/version-1.34.5-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
20
20
  [![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 docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://docusaurus.io/)&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)
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 import_path = require("path");
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, import_path.join)("../../coverage", projectDir)
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",
@@ -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
- projectDir: string,
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.4",
3
+ "version": "1.34.6",
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": "./index.d.ts",
33
+ "types": "./declarations.d.ts",
34
34
  "devDependencies": {
35
35
  "@nx/jest": "18.0.4",
36
36
  "jest": "29.7.0",