@storm-software/testing-tools 1.106.1 → 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 +21 -0
- package/README.md +1 -1
- package/jest.config.ts +11 -0
- package/package.json +1 -1
- package/project.json +52 -0
- package/src/index.ts +2 -0
- package/tsconfig.json +11 -0
- package/tsconfig.spec.json +14 -0
- package/index.cjs +0 -93
- /package/{jest → src/jest}/__mocks__/file.mock.js +0 -0
- /package/{jest → src/jest}/__mocks__/style.mock.js +0 -0
- /package/{jest → src/jest}/file-transformer.js +0 -0
- /package/{jest → src/jest}/package.config.ts +0 -0
- /package/{jest → src/jest}/preset.js +0 -0
- /package/{jest → src/jest}/setup.js +0 -0
- /package/{jest → src/jest}/workspace.config.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
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
|
+
|
|
5
26
|
## [1.106.1](https://github.com/storm-software/storm-ops/releases/tag/testing-tools%401.106.1) (2025-05-05)
|
|
6
27
|
|
|
7
28
|
### Miscellaneous
|
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/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
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
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
|