@storm-software/testing-tools 1.107.2 → 1.108.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.
- package/CHANGELOG.md +24 -0
- package/README.md +1 -1
- package/index.cjs +93 -0
- package/package.json +4 -9
- package/jest.config.ts +0 -11
- package/project.json +0 -52
- package/src/index.ts +0 -2
- package/tsconfig.json +0 -11
- package/tsconfig.spec.json +0 -14
- /package/{src/jest → jest}/__mocks__/file.mock.js +0 -0
- /package/{src/jest → jest}/__mocks__/style.mock.js +0 -0
- /package/{src/jest → jest}/file-transformer.js +0 -0
- /package/{src/jest → jest}/package.config.ts +0 -0
- /package/{src/jest → jest}/preset.js +0 -0
- /package/{src/jest → jest}/setup.js +0 -0
- /package/{src/jest → jest}/workspace.config.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Testing Tools
|
|
4
4
|
|
|
5
|
+
## [1.108.1](https://github.com/storm-software/storm-ops/releases/tag/testing-tools%401.108.1) (2025-05-06)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **eslint:** Regenerate type definitions
|
|
10
|
+
([aa082a323](https://github.com/storm-software/storm-ops/commit/aa082a323))
|
|
11
|
+
- **monorepo:** Regenerate README markdown files
|
|
12
|
+
([ed5072712](https://github.com/storm-software/storm-ops/commit/ed5072712))
|
|
13
|
+
|
|
14
|
+
## [1.108.0](https://github.com/storm-software/storm-ops/releases/tag/testing-tools%401.108.0) (2025-05-06)
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
- **workspace-tools:** Update the release executor to replace workspace
|
|
19
|
+
configurations
|
|
20
|
+
([7d2aa456c](https://github.com/storm-software/storm-ops/commit/7d2aa456c))
|
|
21
|
+
|
|
22
|
+
### Miscellaneous
|
|
23
|
+
|
|
24
|
+
- **monorepo:** Regenerate README markdown files
|
|
25
|
+
([96f241a4d](https://github.com/storm-software/storm-ops/commit/96f241a4d))
|
|
26
|
+
- **monorepo:** Regenerate README markdown files
|
|
27
|
+
([17bbe7e16](https://github.com/storm-software/storm-ops/commit/17bbe7e16))
|
|
28
|
+
|
|
5
29
|
## [1.107.2](https://github.com/storm-software/storm-ops/releases/tag/testing-tools%401.107.2) (2025-05-06)
|
|
6
30
|
|
|
7
31
|
### Bug Fixes
|
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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/index.cjs
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/testing-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.108.1",
|
|
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": {
|
|
@@ -28,17 +28,12 @@
|
|
|
28
28
|
"stormstack",
|
|
29
29
|
"sullivanpj"
|
|
30
30
|
],
|
|
31
|
-
"peerDependencies": {
|
|
32
|
-
"@nx/jest": "20.8.0",
|
|
33
|
-
"jest": "29.7.0"
|
|
34
|
-
},
|
|
31
|
+
"peerDependencies": { "@nx/jest": "20.8.0", "jest": "29.7.0" },
|
|
35
32
|
"devDependencies": {
|
|
36
33
|
"@nx/jest": "20.8.0",
|
|
37
34
|
"@types/node": "^22.10.2",
|
|
38
35
|
"jest": "29.7.0",
|
|
39
36
|
"jest-resolve": "29.7.0"
|
|
40
37
|
},
|
|
41
|
-
"publishConfig": {
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
}
|
|
38
|
+
"publishConfig": { "access": "public" }
|
|
39
|
+
}
|
package/jest.config.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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/project.json
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
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
DELETED
package/tsconfig.json
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
}
|
package/tsconfig.spec.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|