@storm-software/testing-tools 1.106.0 → 1.107.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/CHANGELOG.md CHANGED
@@ -2,6 +2,34 @@
2
2
 
3
3
  # Changelog for Storm Ops - Testing Tools
4
4
 
5
+ ## [1.107.0](https://github.com/storm-software/storm-ops/releases/tag/testing-tools%401.107.0) (2025-05-06)
6
+
7
+ ### Features
8
+
9
+ - **workspace-tools:** Update the publish executor source code
10
+ ([527dcfe84](https://github.com/storm-software/storm-ops/commit/527dcfe84))
11
+
12
+ ### Miscellaneous
13
+
14
+ - **monorepo:** Regenerate README markdown files
15
+ ([d58a4014e](https://github.com/storm-software/storm-ops/commit/d58a4014e))
16
+
17
+ ## [1.106.2](https://github.com/storm-software/storm-ops/releases/tag/testing-tools%401.106.2) (2025-05-05)
18
+
19
+ ### Miscellaneous
20
+
21
+ - **workspace-tools:** Skip git checks during publish
22
+ ([7fdcbfc9a](https://github.com/storm-software/storm-ops/commit/7fdcbfc9a))
23
+ - **monorepo:** Regenerate README markdown files
24
+ ([fb8ab0609](https://github.com/storm-software/storm-ops/commit/fb8ab0609))
25
+
26
+ ## [1.106.1](https://github.com/storm-software/storm-ops/releases/tag/testing-tools%401.106.1) (2025-05-05)
27
+
28
+ ### Miscellaneous
29
+
30
+ - **monorepo:** Regenerate README markdown files
31
+ ([372776939](https://github.com/storm-software/storm-ops/commit/372776939))
32
+
5
33
  ## [1.106.0](https://github.com/storm-software/storm-ops/releases/tag/testing-tools%401.106.0) (2025-05-05)
6
34
 
7
35
  ### Features
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.105.5-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.106.1-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,6 +40,7 @@ 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
+
43
44
  ## Table of Contents
44
45
 
45
46
  - [Storm Testing Tools](#storm-testing-tools)
package/jest.config.ts ADDED
@@ -0,0 +1,11 @@
1
+ /* eslint-disable */
2
+ export default {
3
+ displayName: "testing-tools",
4
+ preset: "../../jest.preset.js",
5
+ testEnvironment: "node",
6
+ transform: {
7
+ "^.+\\.[tj]s$": ["ts-jest", { tsconfig: "<rootDir>/tsconfig.spec.json" }],
8
+ },
9
+ moduleFileExtensions: ["ts", "js", "html"],
10
+ coverageDirectory: "../../coverage/packages/testing-tools",
11
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/testing-tools",
3
- "version": "1.106.0",
3
+ "version": "1.107.0",
4
4
  "type": "commonjs",
5
5
  "description": "⚡ A package containing various testing tools used by Storm workspaces to drive unit and e2e testing.",
6
6
  "repository": {
package/project.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "testing-tools",
3
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
+ "sourceRoot": "packages/testing-tools/src",
5
+ "projectType": "library",
6
+ "targets": {
7
+ "build": {
8
+ "cache": true,
9
+ "executor": "@nx/esbuild:esbuild",
10
+ "outputs": ["{options.outputPath}"],
11
+ "options": {
12
+ "outputPath": "dist/packages/testing-tools",
13
+ "main": "packages/testing-tools/src/index.ts",
14
+ "tsConfig": "packages/testing-tools/tsconfig.json",
15
+ "project": "packages/testing-tools/package.json",
16
+ "deleteOutputPath": true,
17
+ "bundle": true,
18
+ "sourcemap": false,
19
+ "minify": false,
20
+ "skipTypeCheck": true,
21
+ "thirdParty": true,
22
+ "format": ["cjs"],
23
+ "external": ["nx", "@nx/jest", "jest"],
24
+ "assets": [
25
+ {
26
+ "input": "packages/testing-tools",
27
+ "glob": "*.md",
28
+ "output": "."
29
+ },
30
+ {
31
+ "input": "",
32
+ "glob": "LICENSE",
33
+ "output": "."
34
+ },
35
+ {
36
+ "input": "packages/testing-tools/src",
37
+ "glob": "jest/**/*.*",
38
+ "output": "."
39
+ },
40
+ {
41
+ "input": "./packages/testing-tools",
42
+ "glob": "declarations.d.ts",
43
+ "output": "."
44
+ }
45
+ ]
46
+ }
47
+ },
48
+ "nx-release-publish": {
49
+ "executor": "@storm-software/workspace-tools:npm-publish"
50
+ }
51
+ }
52
+ }
package/src/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./jest/package.config";
2
+ export * from "./jest/workspace.config";
package/tsconfig.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../../dist/out-tsc",
5
+ "strict": false,
6
+ "esModuleInterop": true,
7
+ "allowSyntheticDefaultImports": true
8
+ },
9
+ "include": ["src/**/*.ts", "src/**/*.js", "bin/**/*", "declarations.d.ts"],
10
+ "exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
11
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../../dist/out-tsc",
5
+ "module": "commonjs",
6
+ "types": ["jest", "node"]
7
+ },
8
+ "include": [
9
+ "jest.config.ts",
10
+ "src/**/*.test.ts",
11
+ "src/**/*.spec.ts",
12
+ "src/**/*.d.ts"
13
+ ]
14
+ }
package/index.cjs DELETED
@@ -1,93 +0,0 @@
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
- // packages/testing-tools/src/index.ts
20
- var index_exports = {};
21
- __export(index_exports, {
22
- getJestConfig: () => getJestConfig
23
- });
24
- module.exports = __toCommonJS(index_exports);
25
-
26
- // packages/testing-tools/src/jest/package.config.ts
27
- var import_node_path = require("node:path");
28
- var getJestConfig = (projectDir, isNode = true, displayName) => ({
29
- displayName: displayName ? displayName : projectDir.replaceAll("\\", "-").replaceAll("/", "-"),
30
- preset: "@storm-software/testing-tools/jest/preset.js",
31
- testEnvironment: isNode ? "node" : "jsdom",
32
- transform: {
33
- "^.+\\.[tj]s$": ["ts-jest", { tsconfig: "<rootDir>/tsconfig.spec.json" }]
34
- },
35
- moduleFileExtensions: ["ts", "js", "html"],
36
- coverageDirectory: (0, import_node_path.join)("../../coverage", projectDir)
37
- });
38
-
39
- // packages/testing-tools/src/jest/workspace.config.ts
40
- var import_jest = require("@nx/jest");
41
- var workspace_config_default = {
42
- /**
43
- * When the projects configuration is provided with an array of paths or glob patterns, Jest will run tests in all of the specified projects at the same time.
44
- * This is great for monorepos or when working on multiple projects at the same time.
45
- */
46
- projects: (0, import_jest.getJestProjects)(),
47
- /**
48
- * Indicates whether the coverage information should be collected while executing the test. Because this retrofits all
49
- * executed files with coverage collection statements, it may significantly slow down your tests. Default: false
50
- */
51
- collectCoverage: process.env.CI ? true : false,
52
- /**
53
- * An array of glob patterns indicating a set of files for which coverage information should be collected.
54
- * If a file matches the specified glob pattern, coverage information will be collected for it even if no tests exist
55
- * for this file and it's never required in the test suite. Default: undefined
56
- */
57
- // collectCoverageFrom: ["**/*(!*.spec).tsx", "**/*(!*.spec).ts"],
58
- /**
59
- * The directory where Jest should output its coverage files. Default: undefined
60
- */
61
- coverageDirectory: "<rootDir>/coverage",
62
- /**
63
- * An array of regexp pattern strings that are matched against all file paths before executing the test. If the file path
64
- * matches any of the patterns, coverage information will be skipped.
65
- */
66
- coveragePathIgnorePatterns: [
67
- "\\.spec\\.ts$",
68
- "\\.test\\.ts$",
69
- "<rootDir>/dist",
70
- "<rootDir>/test",
71
- "<rootDir>/__generated__",
72
- "<rootDir>/node_modules"
73
- ],
74
- /**
75
- * The test environment that will be used for testing. The default environment in Jest is a Node.js environment.
76
- * If you are building a web app, you can use a browser-like environment through jsdom instead.
77
- */
78
- testEnvironment: "jest-environment-jsdom",
79
- /**
80
- * A list of reporter names that Jest uses when writing coverage reports. Any istanbul reporter can be used.
81
- * Default: ["json", "lcov", "text"]
82
- */
83
- coverageReporters: ["lcov", "json"],
84
- setupFiles: ["@storm-software/testing-tools/jest/__mocks__/jest.setup.js"],
85
- moduleNameMapper: {
86
- "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "@storm-software/testing-tools/jest/__mocks__/file.mock.js",
87
- "\\.(css|less)$": "@storm-software/testing-tools/jest/__mocks__/style.mock.js"
88
- }
89
- };
90
- // Annotate the CommonJS export names for ESM import in node:
91
- 0 && (module.exports = {
92
- getJestConfig
93
- });
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes