@storm-software/testing-tools 1.0.0 → 1.1.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 +66 -0
- package/README.md +1 -1
- package/index.cjs +55 -35
- package/index.js +28 -12
- package/jest/package.config.ts +34 -0
- package/package.json +1 -1
- /package/jest/{config.ts → workspace.config.ts} +0 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# [1.0.0](https://github.com/storm-software/storm-ops/compare/...testing-tools-v1.0.0) (2023-11-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** pin dependencies ([3a245b9](https://github.com/storm-software/storm-ops/commit/3a245b9f6781af520862474da42de105a59a96e1))
|
|
7
|
+
* **deps:** update dependency @cspell/dict-en-gb to v4 ([eddf2bf](https://github.com/storm-software/storm-ops/commit/eddf2bff0125b38008a3dccf22928f20767ecd26))
|
|
8
|
+
* **deps:** update dependency p-limit to v5 ([353e00a](https://github.com/storm-software/storm-ops/commit/353e00a00d4de71ca2d828d4a788726da6020ba4))
|
|
9
|
+
* **deps:** update dependency prettier to v3 ([f505213](https://github.com/storm-software/storm-ops/commit/f50521399cb1f54916a803b91587f6241467123a))
|
|
10
|
+
* **deps:** update typescript-eslint monorepo to v6 ([c8b086b](https://github.com/storm-software/storm-ops/commit/c8b086b43f25c22c200bf157e88459371391ec38))
|
|
11
|
+
* **git-tools:** Add @semantic-release/github dependency to git-tools ([949bc8d](https://github.com/storm-software/storm-ops/commit/949bc8d953b855e3f2e0a2f7e1faae12da83cdad))
|
|
12
|
+
* **git-tools:** Added config token replacement functionality ([cd48602](https://github.com/storm-software/storm-ops/commit/cd4860283eb249bfe2b2b08a439f729f2f5b89a3))
|
|
13
|
+
* **git-tools:** Added missing GitHub release config and removed failed GitGuardian lines ([4b64698](https://github.com/storm-software/storm-ops/commit/4b646983226fa979c76f8078ffd1cee1d544f1a1))
|
|
14
|
+
* **git-tools:** Added missing semantic-release depenencies ([33a0f5e](https://github.com/storm-software/storm-ops/commit/33a0f5e635a417715db8cbfd78540912e721529b))
|
|
15
|
+
* **git-tools:** Added missing semantic-release plugins ([5350bc2](https://github.com/storm-software/storm-ops/commit/5350bc2bd4c89f9f1dc1f29903dfbd90ffb6f337))
|
|
16
|
+
* **git-tools:** Added semantic-release plugins to root package.json ([55289a7](https://github.com/storm-software/storm-ops/commit/55289a75b08e1603f087dfa1c8b6d594b6386f95))
|
|
17
|
+
* **git-tools:** Convert package to ES module ([b845fda](https://github.com/storm-software/storm-ops/commit/b845fdacbd530a90cb6a596cd9e182f3466e92f0))
|
|
18
|
+
* **git-tools:** Patch semantic-release to use an import instead of require on the plugin ([25dcf81](https://github.com/storm-software/storm-ops/commit/25dcf81794381cb3df24ea944592bf6e729093cf))
|
|
19
|
+
* **git-tools:** Remove unused lodash dependency ([0381059](https://github.com/storm-software/storm-ops/commit/0381059a48e7260648a61178ad52912c69362601))
|
|
20
|
+
* **git-tools:** Resolve issue with CJS vs ESM conflicts ([7afb4c9](https://github.com/storm-software/storm-ops/commit/7afb4c98b22dff7a9b9d9ba5987b212797b7aa29))
|
|
21
|
+
* **git-tools:** Resolved issues with release module imports ([befe2b2](https://github.com/storm-software/storm-ops/commit/befe2b21a3726abd51a032abaed21e8bcaf50c74))
|
|
22
|
+
* **git-tools:** Update method of importing semantic-release ([5ae114e](https://github.com/storm-software/storm-ops/commit/5ae114e0fee775840363ffcf7f2efcb727c2c9ed))
|
|
23
|
+
* **git-tools:** Update require to import in semantic-release patch ([e2ef52c](https://github.com/storm-software/storm-ops/commit/e2ef52cd0920336ad33857954040af7291a66e6d))
|
|
24
|
+
* **semantic-release-plugin:** Add cjs build to release plugin ([3e06494](https://github.com/storm-software/storm-ops/commit/3e0649470fcc68814b550dd933fedb5840425617))
|
|
25
|
+
* **semantic-release-plugin:** Add code for commit analyzer ([2757ca3](https://github.com/storm-software/storm-ops/commit/2757ca3c9805b1cde9cb4bab0361ebee783fae11))
|
|
26
|
+
* **semantic-release-plugin:** Add release note generation to semantic release plugin ([c4e250d](https://github.com/storm-software/storm-ops/commit/c4e250d910daa10aa33549c1c6f508e569930870))
|
|
27
|
+
* **semantic-release-plugin:** Add rootDir to plugin ([674ebdd](https://github.com/storm-software/storm-ops/commit/674ebddf21eaea5958064d4791df1ef676aab393))
|
|
28
|
+
* **semantic-release-plugin:** Change compiler type ([542667d](https://github.com/storm-software/storm-ops/commit/542667db6b58fe9775c92632cf0497a80d74593b))
|
|
29
|
+
* **semantic-release-plugin:** Changed import type for release plugin ([51f4809](https://github.com/storm-software/storm-ops/commit/51f480922809acb5592fcc8b594548d729388a7b))
|
|
30
|
+
* **semantic-release-plugin:** Converted the plugin to CommonJS ([ff870ee](https://github.com/storm-software/storm-ops/commit/ff870ee083c7da4524f50332cf2b47ef27734a3f))
|
|
31
|
+
* **semantic-release-plugin:** Format output to mjs file ([2175391](https://github.com/storm-software/storm-ops/commit/217539176889675d3e47a7dac102a1533a68869a))
|
|
32
|
+
* **semantic-release-plugin:** Invoke commit analzyer manually to prevent ES module issues ([09c66cb](https://github.com/storm-software/storm-ops/commit/09c66cb2c2fc94f59149b93d299cc95346438542))
|
|
33
|
+
* **semantic-release-plugin:** Mark the semantic-release plugin as external ([863ed64](https://github.com/storm-software/storm-ops/commit/863ed640a3960fbed7de71f946db0e2d591c87b8))
|
|
34
|
+
* **semantic-release-plugin:** Patch semantic-release-plugin-decorators to use import instead of require ([8a4b348](https://github.com/storm-software/storm-ops/commit/8a4b34854be0b5b6e7d4bef05942de8ea7ab84b4))
|
|
35
|
+
* **semantic-release-plugin:** Remove code to avoid semantic release built-in plugins ([6a7263b](https://github.com/storm-software/storm-ops/commit/6a7263b1273c0233ccdb79b3c3c06a9059375e5d))
|
|
36
|
+
* **semantic-release-plugin:** Remove third party code from bundle ([5d0d464](https://github.com/storm-software/storm-ops/commit/5d0d464e75d1fdd47e8db9f471ef8655a6b800e5))
|
|
37
|
+
* **semantic-release-plugin:** Removed dependancy on commit analyzer ([4796955](https://github.com/storm-software/storm-ops/commit/479695525e578ead9ada3fc79b2f46edfb0b667d))
|
|
38
|
+
* **semantic-release-plugin:** Resolve imports to support ES modules ([91cdf56](https://github.com/storm-software/storm-ops/commit/91cdf569e0e2237bbc0cb2e81446c3b2578a2e27))
|
|
39
|
+
* **semantic-release-plugin:** Resolve issue with main path extension in package.json ([b2aa62b](https://github.com/storm-software/storm-ops/commit/b2aa62be19ed31f64f6b1c483f0dd480ce73c1de))
|
|
40
|
+
* **semantic-release-plugin:** Resolve missing path module ([34409df](https://github.com/storm-software/storm-ops/commit/34409df07f095e6b11d80f570d03dea3bf859a86))
|
|
41
|
+
* **semantic-release-plugin:** Resolve path import issue ([c7769a1](https://github.com/storm-software/storm-ops/commit/c7769a123fbb48988c58047fa4832563b7946dad))
|
|
42
|
+
* **semantic-release-plugin:** Unbundle sematic release plugin ([7910e43](https://github.com/storm-software/storm-ops/commit/7910e43b14a9f048ad4979cdc8819589adbc1b3a))
|
|
43
|
+
* **semantic-release-plugin:** Update extension on main file to be mjs ([8c6e389](https://github.com/storm-software/storm-ops/commit/8c6e389bac21008b2cb4289b47f345ec52b2c204))
|
|
44
|
+
* **semantic-release-plugin:** Update the package.json index file path ([1da1cce](https://github.com/storm-software/storm-ops/commit/1da1cce9d135826636ed7af371e01db329bf1cc9))
|
|
45
|
+
* **storm-ops:** Add @semantic-release/commit-analyzer dependency back to workspace root ([553dd65](https://github.com/storm-software/storm-ops/commit/553dd6548aba57eada49dce635312b2c4bdd474f))
|
|
46
|
+
* **storm-ops:** Added back husky hooks and removed config from package.json ([f1b0b85](https://github.com/storm-software/storm-ops/commit/f1b0b85af21c22051a9f26c8d987c4370c60ca76))
|
|
47
|
+
* **storm-ops:** Patch semantic release to use old config import ([18e27d6](https://github.com/storm-software/storm-ops/commit/18e27d6f5038475e28a83efbfdb0438fac3acda2))
|
|
48
|
+
* **storm-ops:** Regenerate pnpm lockfile ([6cc4c75](https://github.com/storm-software/storm-ops/commit/6cc4c75486d843327d8e438e34dd08182bb0e052))
|
|
49
|
+
* **storm-ops:** Regenerated pnpm filelock file ([113bf16](https://github.com/storm-software/storm-ops/commit/113bf1678acd4324992f4d8f2581c262bddcbc85))
|
|
50
|
+
* **storm-ops:** Remove unused workspace config from package.json ([0651468](https://github.com/storm-software/storm-ops/commit/0651468547eab92f29ea0f74152752eb700af0cb))
|
|
51
|
+
* **storm-ops:** Resolved issue with prepare script in workspace root ([4caa35a](https://github.com/storm-software/storm-ops/commit/4caa35a09421e0ac48a0d2eddc27843c4dcff6e7))
|
|
52
|
+
* **storm-ops:** Resolved issues with build/CI ([fc81a8f](https://github.com/storm-software/storm-ops/commit/fc81a8f527d7b0a069818243f955d05062a4efac))
|
|
53
|
+
* **storm-ops:** Resolved issues with pnpm lockfile ([563238c](https://github.com/storm-software/storm-ops/commit/563238cad00bc4042512438aee4072a084cfce99))
|
|
54
|
+
* **storm-ops:** Update linting tools, and scripts, to use ES modules ([59cb4a1](https://github.com/storm-software/storm-ops/commit/59cb4a18772bbe85a8d88aa356c37b799ce0d11f))
|
|
55
|
+
* **storm-ops:** Update lockfile for monorepo ([fc39b4a](https://github.com/storm-software/storm-ops/commit/fc39b4a32e199550eddf85360728e9253d210fa7))
|
|
56
|
+
* **storm-ops:** Update pnpm lockfile ([f08a730](https://github.com/storm-software/storm-ops/commit/f08a7309f56fabbf6d0c108b3a57834a0ec05429))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Features
|
|
60
|
+
|
|
61
|
+
* **create-storm-workspace:** Initial check-in for storm-ops monorepo ([ecb9822](https://github.com/storm-software/storm-ops/commit/ecb9822741fd989c3ce68fd7d07547e8b925cd9d))
|
|
62
|
+
* **git-tools:** Move the semantic-release-plugin into the git-tools package ([663e7ca](https://github.com/storm-software/storm-ops/commit/663e7ca6f51bf141b698a6448f88471278a2c77f))
|
|
63
|
+
* **semantic-release-plugin:** Resolve issues with plugin so release executes ([b7164b5](https://github.com/storm-software/storm-ops/commit/b7164b5b5b077da44a40141ade245ddd26ae54ee))
|
|
64
|
+
* **semantic-release-plugin:** Split out the semantic release plugin into it's own project ([317e52c](https://github.com/storm-software/storm-ops/commit/317e52ca4278855a87a5d1f8b52faab610a35ba8))
|
|
65
|
+
* **storm-ops:** Converted repository eslint to flat structure ([a738c3a](https://github.com/storm-software/storm-ops/commit/a738c3a9839cd5262e98029641f7a9a4d886e117))
|
|
66
|
+
* **testing-tools:** Added testing-tools library for common test functionality ([08d3ccd](https://github.com/storm-software/storm-ops/commit/08d3ccda5508db5c9abf2481900f9d9826d6ece1))
|
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
15
15
|
|
|
16
16
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
|
|
17
17
|
|
|
18
|
-
[](https://prettier.io/)
|
|
19
19
|
[](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://docusaurus.io/) 
|
|
20
20
|
|
|
21
21
|
<h3 align="center" bold="true">⚠️ <b>Attention</b> ⚠️ - This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.</h3><br />
|
package/index.cjs
CHANGED
|
@@ -617,18 +617,18 @@ async function getStdin() {
|
|
|
617
617
|
function writeFormattedFile(file, data) {
|
|
618
618
|
return import_promises.default.writeFile(file, data);
|
|
619
619
|
}
|
|
620
|
-
var import_module, import_url,
|
|
620
|
+
var import_module, import_url, import_path2, import_promises, import_meta, require2, __filename2, __dirname2, __create2, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __getProtoOf2, __hasOwnProp2, __require, __commonJS2, __copyProps2, __toESM2, require_cacheWrapper, require_getPropertyByPath, require_resolve_from, require_parent_module, require_import_fresh, require_is_arrayish, require_error_ex, require_json_parse_even_better_errors, require_build, require_js_tokens, require_identifier, require_keyword, require_lib, require_escape_string_regexp, require_color_name, require_conversions, require_route, require_color_convert, require_ansi_styles, require_has_flag, require_supports_color, require_templates, require_chalk, require_lib2, require_lib3, require_parse_json, require_common, require_exception, require_snippet, require_type, require_schema, require_str, require_seq, require_map, require_failsafe, require_null, require_bool, require_int, require_float, require_json, require_core, require_timestamp, require_merge, require_binary, require_omap, require_pairs, require_set, require_default, require_loader, require_dumper, require_js_yaml, require_loaders, require_ExplorerBase, require_path_type, require_getDirectory, require_readFile, require_Explorer, require_ExplorerSync, require_types, require_dist, require_find_parent_dir, require_vendors, require_ci_info, import_cosmiconfig, import_find_parent_dir, stdin, import_ci_info, mockable, mockable_default;
|
|
621
621
|
var init_internal = __esm({
|
|
622
622
|
"node_modules/.pnpm/prettier@3.0.3/node_modules/prettier/internal/internal.mjs"() {
|
|
623
623
|
"use strict";
|
|
624
624
|
import_module = require("module");
|
|
625
625
|
import_url = require("url");
|
|
626
|
-
|
|
626
|
+
import_path2 = require("path");
|
|
627
627
|
import_promises = __toESM(require("fs/promises"), 1);
|
|
628
628
|
import_meta = {};
|
|
629
629
|
require2 = (0, import_module.createRequire)(import_meta.url);
|
|
630
630
|
__filename2 = (0, import_url.fileURLToPath)(import_meta.url);
|
|
631
|
-
__dirname2 = (0,
|
|
631
|
+
__dirname2 = (0, import_path2.dirname)(__filename2);
|
|
632
632
|
__create2 = Object.create;
|
|
633
633
|
__defProp2 = Object.defineProperty;
|
|
634
634
|
__getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -7194,7 +7194,7 @@ function lineSuffix(contents) {
|
|
|
7194
7194
|
assertDoc(contents);
|
|
7195
7195
|
return { type: DOC_TYPE_LINE_SUFFIX, contents };
|
|
7196
7196
|
}
|
|
7197
|
-
function
|
|
7197
|
+
function join2(separator, docs) {
|
|
7198
7198
|
assertDoc(separator);
|
|
7199
7199
|
assertDocArray(docs);
|
|
7200
7200
|
const parts = [];
|
|
@@ -7549,7 +7549,7 @@ function cleanDoc(doc) {
|
|
|
7549
7549
|
return mapDoc(doc, (currentDoc) => cleanDocFn(currentDoc));
|
|
7550
7550
|
}
|
|
7551
7551
|
function replaceEndOfLine(doc, replacement = literalline) {
|
|
7552
|
-
return mapDoc(doc, (currentDoc) => typeof currentDoc === "string" ?
|
|
7552
|
+
return mapDoc(doc, (currentDoc) => typeof currentDoc === "string" ? join2(replacement, currentDoc.split("\n")) : currentDoc);
|
|
7553
7553
|
}
|
|
7554
7554
|
function canBreakFn(doc) {
|
|
7555
7555
|
if (doc.type === DOC_TYPE_LINE) {
|
|
@@ -8275,7 +8275,7 @@ var init_doc = __esm({
|
|
|
8275
8275
|
MODE_FLAT = Symbol("MODE_FLAT");
|
|
8276
8276
|
CURSOR_PLACEHOLDER = Symbol("cursor");
|
|
8277
8277
|
builders = {
|
|
8278
|
-
join,
|
|
8278
|
+
join: join2,
|
|
8279
8279
|
line,
|
|
8280
8280
|
softline,
|
|
8281
8281
|
hardline,
|
|
@@ -101966,7 +101966,7 @@ function partition2(array2, predicate) {
|
|
|
101966
101966
|
}
|
|
101967
101967
|
function findProjectRoot(directory) {
|
|
101968
101968
|
while (!markerExists(directory)) {
|
|
101969
|
-
const parentDirectory =
|
|
101969
|
+
const parentDirectory = import_path6.default.resolve(directory, "..");
|
|
101970
101970
|
if (parentDirectory === directory) {
|
|
101971
101971
|
break;
|
|
101972
101972
|
}
|
|
@@ -101976,7 +101976,7 @@ function findProjectRoot(directory) {
|
|
|
101976
101976
|
}
|
|
101977
101977
|
async function loadEditorConfig(filePath) {
|
|
101978
101978
|
const editorConfig = await import_editorconfig.default.parse(filePath, {
|
|
101979
|
-
root: find_project_root_default(
|
|
101979
|
+
root: find_project_root_default(import_path5.default.dirname(import_path5.default.resolve(filePath)))
|
|
101980
101980
|
});
|
|
101981
101981
|
const config = (0, import_editorconfig_to_prettier.default)(editorConfig);
|
|
101982
101982
|
if (config) {
|
|
@@ -102093,7 +102093,7 @@ function determineSpecificType(value) {
|
|
|
102093
102093
|
function read(jsonPath) {
|
|
102094
102094
|
try {
|
|
102095
102095
|
const string = import_fs4.default.readFileSync(
|
|
102096
|
-
|
|
102096
|
+
import_path8.default.toNamespacedPath(import_path8.default.join(import_path8.default.dirname(jsonPath), "package.json")),
|
|
102097
102097
|
"utf8"
|
|
102098
102098
|
);
|
|
102099
102099
|
return { string };
|
|
@@ -102379,7 +102379,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
102379
102379
|
if (!preserveSymlinks) {
|
|
102380
102380
|
const real = (0, import_fs3.realpathSync)(filePath);
|
|
102381
102381
|
const { search, hash } = resolved;
|
|
102382
|
-
resolved = (0, import_url4.pathToFileURL)(real + (filePath.endsWith(
|
|
102382
|
+
resolved = (0, import_url4.pathToFileURL)(real + (filePath.endsWith(import_path7.default.sep) ? "/" : ""));
|
|
102383
102383
|
resolved.search = search;
|
|
102384
102384
|
resolved.hash = hash;
|
|
102385
102385
|
}
|
|
@@ -103125,7 +103125,7 @@ async function resolveConfig(filePath, options8) {
|
|
|
103125
103125
|
};
|
|
103126
103126
|
if (Array.isArray(merged.plugins)) {
|
|
103127
103127
|
merged.plugins = merged.plugins.map(
|
|
103128
|
-
(value) => typeof value === "string" && value.startsWith(".") ?
|
|
103128
|
+
(value) => typeof value === "string" && value.startsWith(".") ? import_path4.default.resolve(import_path4.default.dirname(result.filepath), value) : value
|
|
103129
103129
|
);
|
|
103130
103130
|
}
|
|
103131
103131
|
return merged;
|
|
@@ -103139,7 +103139,7 @@ function mergeOverrides(configResult, filePath) {
|
|
|
103139
103139
|
const { config, filepath: configPath } = configResult || {};
|
|
103140
103140
|
const { overrides, ...options8 } = config || {};
|
|
103141
103141
|
if (filePath && overrides) {
|
|
103142
|
-
const relativeFilePath =
|
|
103142
|
+
const relativeFilePath = import_path4.default.relative(import_path4.default.dirname(configPath), filePath);
|
|
103143
103143
|
for (const override of overrides) {
|
|
103144
103144
|
if (pathMatchesGlobs(
|
|
103145
103145
|
relativeFilePath,
|
|
@@ -103193,8 +103193,8 @@ async function createSingleIsIgnoredFunction(ignoreFilePath, withNodeModules) {
|
|
|
103193
103193
|
allowRelativePaths: true
|
|
103194
103194
|
}).add(content);
|
|
103195
103195
|
return (filepath) => {
|
|
103196
|
-
filepath =
|
|
103197
|
-
const relativePath = ignoreFilePath ?
|
|
103196
|
+
filepath = import_path9.default.resolve(filepath);
|
|
103197
|
+
const relativePath = ignoreFilePath ? import_path9.default.relative(import_path9.default.dirname(ignoreFilePath), filepath) : import_path9.default.relative(process.cwd(), filepath);
|
|
103198
103198
|
return ignore.ignores(slash(relativePath));
|
|
103199
103199
|
};
|
|
103200
103200
|
}
|
|
@@ -103241,7 +103241,7 @@ async function getParser(filePath, options8) {
|
|
|
103241
103241
|
return (config == null ? void 0 : config.parser) ?? infer_parser_default(options8, { physicalFile: filePath });
|
|
103242
103242
|
}
|
|
103243
103243
|
function importFromDirectory(specifier, directory) {
|
|
103244
|
-
return import_from_file_default(specifier,
|
|
103244
|
+
return import_from_file_default(specifier, import_path11.default.join(directory, "noop.js"));
|
|
103245
103245
|
}
|
|
103246
103246
|
function normalizePlugin(pluginInstanceOfPluginModule, name) {
|
|
103247
103247
|
const plugin = pluginInstanceOfPluginModule.default ?? pluginInstanceOfPluginModule;
|
|
@@ -103473,23 +103473,23 @@ async function clearCache3() {
|
|
|
103473
103473
|
clearCache();
|
|
103474
103474
|
clearCache2();
|
|
103475
103475
|
}
|
|
103476
|
-
var import_module2, import_url2,
|
|
103476
|
+
var import_module2, import_url2, import_path3, import_process, import_os, import_tty, import_fs, import_assert, import_assert2, import_path4, import_path5, import_fs2, import_path6, import_module3, import_url3, import_assert3, import_fs3, import_process2, import_url4, import_path7, import_module4, import_url5, import_url6, import_v8, import_process3, import_assert4, import_util, import_fs4, import_path8, import_path9, import_promises2, import_url7, import_path10, import_path11, import_meta2, require3, __filename3, __dirname3, __create3, __defProp4, __getOwnPropDesc3, __getOwnPropNames3, __getProtoOf3, __hasOwnProp3, __require2, __commonJS3, __export3, __copyProps3, __toESM3, __accessCheck, __privateAdd, __privateMethod, require_array, require_errno, require_fs, require_path, require_is_extglob, require_is_glob, require_glob_parent, require_utils, require_stringify, require_is_number, require_to_regex_range, require_fill_range, require_compile, require_expand, require_constants, require_parse, require_braces, require_constants2, require_utils2, require_scan, require_parse2, require_picomatch, require_picomatch2, require_micromatch, require_pattern, require_merge2, require_stream, require_string, require_utils3, require_tasks, require_async, require_sync, require_fs2, require_settings, require_out, require_queue_microtask, require_run_parallel, require_constants3, require_fs3, require_utils4, require_common2, require_async2, require_sync2, require_fs4, require_settings2, require_out2, require_reusify, require_queue, require_common22, require_reader, require_async3, require_async4, require_stream2, require_sync3, require_sync4, require_settings3, require_out3, require_reader2, require_stream3, require_async5, require_matcher, require_partial, require_deep, require_entry, require_error, require_entry2, require_provider, require_async6, require_stream4, require_sync5, require_sync6, require_settings4, require_out4, require_base, require_array2, require_readlines, require_js_tokens2, require_identifier2, require_keyword2, require_lib4, require_escape_string_regexp2, require_color_name2, require_conversions2, require_route2, require_color_convert2, require_ansi_styles2, require_has_flag2, require_supports_color2, require_templates2, require_chalk2, require_lib22, require_lib32, require_p_defer, require_dist2, require_debug, require_constants4, require_re, require_parse_options, require_identifiers, require_semver, require_compare, require_gte, require_pseudomap, require_map2, require_yallist, require_lru_cache, require_sigmund, require_fnmatch, require_ini, require_package, require_src, require_editorconfig_to_prettier, require_parser, require_create_datetime, require_format_num, require_create_datetime_float, require_create_date, require_create_time, require_toml_parser, require_parse_pretty_error, require_parse_async, require_unicode, require_util, require_parse3, require_ignore, src_exports, apiDescriptor, ANSI_BACKGROUND_OFFSET, wrapAnsi16, wrapAnsi256, wrapAnsi16m, styles, modifierNames, foregroundColorNames, backgroundColorNames, colorNames, ansiStyles, ansi_styles_default, env, flagForceColor, supportsColor, supports_color_default, stdoutColor, stderrColor, GENERATOR, STYLER, IS_EMPTY, levelMapping, styles2, applyOptions, chalkFactory, getModelAnsi, usedModels, proto, createStyler, createBuilder, applyStyle, chalk, chalkStderr, source_default, commonDeprecatedHandler, VALUE_NOT_EXIST, VALUE_UNCHANGED, INDENTATION, commonInvalidHandler, array, characterCodeCache, levenUnknownHandler, HANDLER_KEYS, Schema, AliasSchema, AnySchema, ArraySchema, BooleanSchema, ChoiceSchema, NumberSchema, IntegerSchema, StringSchema, defaultDescriptor, defaultUnknownHandler, defaultInvalidHandler, defaultDeprecatedHandler, Normalizer, import_fast_glob, stringReplaceAll22, string_replace_all_default2, import_diff, DOC_TYPE_STRING2, DOC_TYPE_ARRAY2, DOC_TYPE_CURSOR2, DOC_TYPE_INDENT2, DOC_TYPE_ALIGN2, DOC_TYPE_TRIM2, DOC_TYPE_GROUP2, DOC_TYPE_FILL2, DOC_TYPE_IF_BREAK2, DOC_TYPE_INDENT_IF_BREAK2, DOC_TYPE_LINE_SUFFIX2, DOC_TYPE_LINE_SUFFIX_BOUNDARY2, DOC_TYPE_LINE2, DOC_TYPE_LABEL2, DOC_TYPE_BREAK_PARENT2, VALID_OBJECT_DOC_TYPES2, get_doc_type_default2, disjunctionListFormat2, InvalidDocError2, invalid_doc_error_default2, traverseDocOnExitStackMarker2, traverse_doc_default2, noop2, assertDoc2, assertDocArray2, breakParent2, hardlineWithoutBreakParent2, line2, hardline2, cursor2, at6, at_default2, emoji_regex_default2, eastasianwidth_default2, notAsciiRegex2, get_string_width_default2, getDocParts2, MODE_BREAK2, MODE_FLAT2, CURSOR_PLACEHOLDER2, get_alignment_size_default, errors_exports, ConfigError, UndefinedParserError, ArgExpansionBailout, core_options_evaluate_default, import_n_readlines, get_interpreter_default, getFileBasename, infer_parser_default, hasDeprecationWarned, normalize_options_default, formatOptionsHiddenDefaults, normalize_format_options_default, nonTraversableKeys, defaultGetVisitorKeys, create_get_visitor_keys_function_default, massage_ast_default, import_code_frame, parse_default, _getNodeStackIndex, getNodeStackIndex_fn, _getAncestors, getAncestors_fn, AstPath, ast_path_default, skipWhitespace, skipSpaces, skipToLineEnd, skipEverythingButNewLine, skip_newline_default, has_newline_default, is_non_empty_array_default, is_object_default, childNodesCache, returnFalse, isAllEmptyAndNoLineBreak, is_previous_line_empty_default, create_print_pre_check_function_default, print_ignored_default, isJsonParser, jsonSourceElements, graphqlSourceElements, get_cursor_node_default, BOM, CURSOR, import_micromatch, copyProperty, canCopyProperty, changePrototype, wrappedToString, toStringDescriptor, toStringName, changeToString, import_map_age_cleaner, cacheStore, partition_default, import_editorconfig, import_editorconfig_to_prettier, MARKERS, markerExists, find_project_root_default, resolve_editorconfig_default, import_parse_async, import_parse3, require_from_file_default, isWindows, own, classRegExp, kTypes, codes, messages, nodeInternalPrefix, userStackTraceLimit, captureLargerStackTrace, reader, package_json_reader_default, ERR_INVALID_PACKAGE_CONFIG, packageJsonCache, ERR_UNKNOWN_FILE_EXTENSION, hasOwnProperty, extensionFormatMap, protocolHandlers, ERR_INVALID_ARG_VALUE, DEFAULT_CONDITIONS, DEFAULT_CONDITIONS_SET, RegExpPrototypeSymbolReplace, experimentalNetworkImports, ERR_NETWORK_IMPORT_DISALLOWED, ERR_INVALID_MODULE_SPECIFIER, ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET, ERR_MODULE_NOT_FOUND, ERR_PACKAGE_IMPORT_NOT_DEFINED, ERR_PACKAGE_PATH_NOT_EXPORTED, ERR_UNSUPPORTED_DIR_IMPORT, ERR_UNSUPPORTED_ESM_URL_SCHEME, own2, invalidSegmentRegEx, deprecatedInvalidSegmentRegEx, invalidPackageNameRegEx, patternRegEx, encodedSepRegEx, emittedPackageWarnings, doubleSlashRegEx, import_from_file_default, requireErrorCodesShouldBeIgnored, load_external_config_default, cosmiconfig, searchPlaces, loaders, get_prettier_config_explorer_default, getPrettierConfigExplorer, memoizedLoadEditorConfig, import_ignore, read_file_default, createIgnore, slash, get_file_info_default, import_from_directory_default, loadPluginFromDirectory, importPlugin, builtin_plugins_proxy_exports, common_options_evaluate_default, options, options_default, languages_evaluate_default, options2, options_default2, languages_evaluate_default2, languages_evaluate_default3, CATEGORY_HTML, options3, options_default3, languages_evaluate_default4, CATEGORY_JAVASCRIPT, options4, options_default4, languages_evaluate_default5, languages_evaluate_default6, options5, options_default5, languages_evaluate_default7, options6, options_default6, languages_evaluate_default8, options7, languages, parsers, printers, load_builtin_plugins_default, load_plugins_default, option_categories_exports, CATEGORY_CONFIG, CATEGORY_EDITOR, CATEGORY_FORMAT, CATEGORY_OTHER, CATEGORY_OUTPUT, CATEGORY_GLOBAL, CATEGORY_SPECIAL, object_omit_default, public_exports2, skip_inline_comment_default, skip_trailing_comment_default, get_next_non_space_non_comment_character_index_default, is_next_line_empty_default, get_max_continuous_count_default, get_indent_size_default, has_newline_in_range_default, has_spaces_default, get_next_non_space_non_comment_character_default, make_string_default, version_evaluate_default, formatWithCursor2, getFileInfo2, getSupportInfo2, sharedWithCli, debugApis, src_default;
|
|
103477
103477
|
var init_prettier = __esm({
|
|
103478
103478
|
"node_modules/.pnpm/prettier@3.0.3/node_modules/prettier/index.mjs"() {
|
|
103479
103479
|
"use strict";
|
|
103480
103480
|
import_module2 = require("module");
|
|
103481
103481
|
import_url2 = require("url");
|
|
103482
|
-
|
|
103482
|
+
import_path3 = require("path");
|
|
103483
103483
|
import_process = __toESM(require("process"), 1);
|
|
103484
103484
|
import_os = __toESM(require("os"), 1);
|
|
103485
103485
|
import_tty = __toESM(require("tty"), 1);
|
|
103486
103486
|
import_fs = __toESM(require("fs"), 1);
|
|
103487
103487
|
import_assert = __toESM(require("assert"), 1);
|
|
103488
103488
|
import_assert2 = __toESM(require("assert"), 1);
|
|
103489
|
-
import_path3 = __toESM(require("path"), 1);
|
|
103490
103489
|
import_path4 = __toESM(require("path"), 1);
|
|
103491
|
-
import_fs2 = __toESM(require("fs"), 1);
|
|
103492
103490
|
import_path5 = __toESM(require("path"), 1);
|
|
103491
|
+
import_fs2 = __toESM(require("fs"), 1);
|
|
103492
|
+
import_path6 = __toESM(require("path"), 1);
|
|
103493
103493
|
init_internal();
|
|
103494
103494
|
import_module3 = require("module");
|
|
103495
103495
|
import_url3 = require("url");
|
|
@@ -103497,7 +103497,7 @@ var init_prettier = __esm({
|
|
|
103497
103497
|
import_fs3 = require("fs");
|
|
103498
103498
|
import_process2 = __toESM(require("process"), 1);
|
|
103499
103499
|
import_url4 = require("url");
|
|
103500
|
-
|
|
103500
|
+
import_path7 = __toESM(require("path"), 1);
|
|
103501
103501
|
import_module4 = require("module");
|
|
103502
103502
|
import_url5 = require("url");
|
|
103503
103503
|
import_url6 = require("url");
|
|
@@ -103506,17 +103506,17 @@ var init_prettier = __esm({
|
|
|
103506
103506
|
import_assert4 = __toESM(require("assert"), 1);
|
|
103507
103507
|
import_util = require("util");
|
|
103508
103508
|
import_fs4 = __toESM(require("fs"), 1);
|
|
103509
|
-
import_path7 = __toESM(require("path"), 1);
|
|
103510
103509
|
import_path8 = __toESM(require("path"), 1);
|
|
103510
|
+
import_path9 = __toESM(require("path"), 1);
|
|
103511
103511
|
import_promises2 = __toESM(require("fs/promises"), 1);
|
|
103512
103512
|
import_url7 = require("url");
|
|
103513
|
-
import_path9 = __toESM(require("path"), 1);
|
|
103514
103513
|
import_path10 = __toESM(require("path"), 1);
|
|
103514
|
+
import_path11 = __toESM(require("path"), 1);
|
|
103515
103515
|
init_doc();
|
|
103516
103516
|
import_meta2 = {};
|
|
103517
103517
|
require3 = (0, import_module2.createRequire)(import_meta2.url);
|
|
103518
103518
|
__filename3 = (0, import_url2.fileURLToPath)(import_meta2.url);
|
|
103519
|
-
__dirname3 = (0,
|
|
103519
|
+
__dirname3 = (0, import_path3.dirname)(__filename3);
|
|
103520
103520
|
__create3 = Object.create;
|
|
103521
103521
|
__defProp4 = Object.defineProperty;
|
|
103522
103522
|
__getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
|
@@ -109065,7 +109065,7 @@ var init_prettier = __esm({
|
|
|
109065
109065
|
},
|
|
109066
109066
|
/*istanbul ignore start*/
|
|
109067
109067
|
/*istanbul ignore end*/
|
|
109068
|
-
join: function
|
|
109068
|
+
join: function join22(chars) {
|
|
109069
109069
|
return chars.join("");
|
|
109070
109070
|
}
|
|
109071
109071
|
};
|
|
@@ -118250,7 +118250,7 @@ ${fromBody}`;
|
|
|
118250
118250
|
import_editorconfig = __toESM3(require_src(), 1);
|
|
118251
118251
|
import_editorconfig_to_prettier = __toESM3(require_editorconfig_to_prettier(), 1);
|
|
118252
118252
|
MARKERS = [".git", ".hg"];
|
|
118253
|
-
markerExists = (directory) => MARKERS.some((mark) => import_fs2.default.existsSync(
|
|
118253
|
+
markerExists = (directory) => MARKERS.some((mark) => import_fs2.default.existsSync(import_path6.default.join(directory, mark)));
|
|
118254
118254
|
find_project_root_default = findProjectRoot;
|
|
118255
118255
|
resolve_editorconfig_default = loadEditorConfig;
|
|
118256
118256
|
import_parse_async = __toESM3(require_parse_async(), 1);
|
|
@@ -118607,7 +118607,7 @@ ${error.message}`;
|
|
|
118607
118607
|
import_ignore = __toESM3(require_ignore(), 1);
|
|
118608
118608
|
read_file_default = readFile;
|
|
118609
118609
|
createIgnore = import_ignore.default.default;
|
|
118610
|
-
slash =
|
|
118610
|
+
slash = import_path9.default.sep === "\\" ? (filepath) => string_replace_all_default2(
|
|
118611
118611
|
/* isOptionalObject*/
|
|
118612
118612
|
false,
|
|
118613
118613
|
filepath,
|
|
@@ -118622,7 +118622,7 @@ ${error.message}`;
|
|
|
118622
118622
|
);
|
|
118623
118623
|
importPlugin = mem(async (name) => {
|
|
118624
118624
|
try {
|
|
118625
|
-
return await import((0, import_url7.pathToFileURL)(
|
|
118625
|
+
return await import((0, import_url7.pathToFileURL)(import_path10.default.resolve(name)).href);
|
|
118626
118626
|
} catch {
|
|
118627
118627
|
return import_from_directory_default(name, process.cwd());
|
|
118628
118628
|
}
|
|
@@ -119951,7 +119951,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
|
|
|
119951
119951
|
var hardline3 = [hardlineWithoutBreakParent3, breakParent3];
|
|
119952
119952
|
var literalline2 = [literallineWithoutBreakParent2, breakParent3];
|
|
119953
119953
|
var cursor3 = { type: DOC_TYPE_CURSOR3 };
|
|
119954
|
-
function
|
|
119954
|
+
function join3(separator, docs) {
|
|
119955
119955
|
assertDoc3(separator);
|
|
119956
119956
|
assertDocArray3(docs);
|
|
119957
119957
|
const parts = [];
|
|
@@ -120363,7 +120363,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
|
|
|
120363
120363
|
return mapDoc3(doc, (currentDoc) => cleanDocFn3(currentDoc));
|
|
120364
120364
|
}
|
|
120365
120365
|
function replaceEndOfLine2(doc, replacement = literalline2) {
|
|
120366
|
-
return mapDoc3(doc, (currentDoc) => typeof currentDoc === "string" ?
|
|
120366
|
+
return mapDoc3(doc, (currentDoc) => typeof currentDoc === "string" ? join3(replacement, currentDoc.split("\n")) : currentDoc);
|
|
120367
120367
|
}
|
|
120368
120368
|
function canBreakFn2(doc) {
|
|
120369
120369
|
if (doc.type === DOC_TYPE_LINE3) {
|
|
@@ -120938,7 +120938,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
|
|
|
120938
120938
|
};
|
|
120939
120939
|
}
|
|
120940
120940
|
var builders2 = {
|
|
120941
|
-
join:
|
|
120941
|
+
join: join3,
|
|
120942
120942
|
line: line3,
|
|
120943
120943
|
softline: softline2,
|
|
120944
120944
|
hardline: hardline3,
|
|
@@ -141396,7 +141396,7 @@ var require_util3 = __commonJS({
|
|
|
141396
141396
|
return path9;
|
|
141397
141397
|
}
|
|
141398
141398
|
exports.normalize = normalize;
|
|
141399
|
-
function
|
|
141399
|
+
function join3(aRoot, aPath) {
|
|
141400
141400
|
if (aRoot === "") {
|
|
141401
141401
|
aRoot = ".";
|
|
141402
141402
|
}
|
|
@@ -141428,7 +141428,7 @@ var require_util3 = __commonJS({
|
|
|
141428
141428
|
}
|
|
141429
141429
|
return joined;
|
|
141430
141430
|
}
|
|
141431
|
-
exports.join =
|
|
141431
|
+
exports.join = join3;
|
|
141432
141432
|
exports.isAbsolute = function(aPath) {
|
|
141433
141433
|
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
|
141434
141434
|
};
|
|
@@ -141601,7 +141601,7 @@ var require_util3 = __commonJS({
|
|
|
141601
141601
|
parsed.path = parsed.path.substring(0, index + 1);
|
|
141602
141602
|
}
|
|
141603
141603
|
}
|
|
141604
|
-
sourceURL =
|
|
141604
|
+
sourceURL = join3(urlGenerate(parsed), sourceURL);
|
|
141605
141605
|
}
|
|
141606
141606
|
return normalize(sourceURL);
|
|
141607
141607
|
}
|
|
@@ -530060,11 +530060,27 @@ var require_jest = __commonJS({
|
|
|
530060
530060
|
|
|
530061
530061
|
// packages/testing-tools/src/index.ts
|
|
530062
530062
|
var src_exports2 = {};
|
|
530063
|
+
__export(src_exports2, {
|
|
530064
|
+
getJestConfig: () => getJestConfig
|
|
530065
|
+
});
|
|
530063
530066
|
module.exports = __toCommonJS(src_exports2);
|
|
530064
530067
|
|
|
530065
|
-
// packages/testing-tools/src/jest/config.ts
|
|
530068
|
+
// packages/testing-tools/src/jest/package.config.ts
|
|
530069
|
+
var import_path = require("path");
|
|
530070
|
+
var getJestConfig = (projectDir, isNode = true, displayName) => ({
|
|
530071
|
+
displayName: displayName ? displayName : projectDir.replaceAll("\\", "-").replaceAll("/", "-"),
|
|
530072
|
+
preset: "@storm-software/testing-tools/jest/preset.js",
|
|
530073
|
+
testEnvironment: isNode ? "node" : "jsdom",
|
|
530074
|
+
transform: {
|
|
530075
|
+
"^.+\\.[tj]s$": ["ts-jest", { tsconfig: "<rootDir>/tsconfig.spec.json" }]
|
|
530076
|
+
},
|
|
530077
|
+
moduleFileExtensions: ["ts", "js", "html"],
|
|
530078
|
+
coverageDirectory: (0, import_path.join)("../../coverage", projectDir)
|
|
530079
|
+
});
|
|
530080
|
+
|
|
530081
|
+
// packages/testing-tools/src/jest/workspace.config.ts
|
|
530066
530082
|
var import_jest = __toESM(require_jest());
|
|
530067
|
-
var
|
|
530083
|
+
var workspace_config_default = {
|
|
530068
530084
|
/**
|
|
530069
530085
|
* 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.
|
|
530070
530086
|
* This is great for monorepos or when working on multiple projects at the same time.
|
|
@@ -530113,6 +530129,10 @@ var config_default = {
|
|
|
530113
530129
|
"\\.(css|less)$": "@storm-software/testing-tools/jest/__mocks__/style.mock.js"
|
|
530114
530130
|
}
|
|
530115
530131
|
};
|
|
530132
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
530133
|
+
0 && (module.exports = {
|
|
530134
|
+
getJestConfig
|
|
530135
|
+
});
|
|
530116
530136
|
/*! Bundled license information:
|
|
530117
530137
|
|
|
530118
530138
|
ejs/lib/ejs.js:
|
package/index.js
CHANGED
|
@@ -7199,7 +7199,7 @@ function lineSuffix(contents) {
|
|
|
7199
7199
|
assertDoc(contents);
|
|
7200
7200
|
return { type: DOC_TYPE_LINE_SUFFIX, contents };
|
|
7201
7201
|
}
|
|
7202
|
-
function
|
|
7202
|
+
function join2(separator, docs) {
|
|
7203
7203
|
assertDoc(separator);
|
|
7204
7204
|
assertDocArray(docs);
|
|
7205
7205
|
const parts = [];
|
|
@@ -7554,7 +7554,7 @@ function cleanDoc(doc) {
|
|
|
7554
7554
|
return mapDoc(doc, (currentDoc) => cleanDocFn(currentDoc));
|
|
7555
7555
|
}
|
|
7556
7556
|
function replaceEndOfLine(doc, replacement = literalline) {
|
|
7557
|
-
return mapDoc(doc, (currentDoc) => typeof currentDoc === "string" ?
|
|
7557
|
+
return mapDoc(doc, (currentDoc) => typeof currentDoc === "string" ? join2(replacement, currentDoc.split("\n")) : currentDoc);
|
|
7558
7558
|
}
|
|
7559
7559
|
function canBreakFn(doc) {
|
|
7560
7560
|
if (doc.type === DOC_TYPE_LINE) {
|
|
@@ -8280,7 +8280,7 @@ var init_doc = __esm({
|
|
|
8280
8280
|
MODE_FLAT = Symbol("MODE_FLAT");
|
|
8281
8281
|
CURSOR_PLACEHOLDER = Symbol("cursor");
|
|
8282
8282
|
builders = {
|
|
8283
|
-
join,
|
|
8283
|
+
join: join2,
|
|
8284
8284
|
line,
|
|
8285
8285
|
softline,
|
|
8286
8286
|
hardline,
|
|
@@ -109069,7 +109069,7 @@ var init_prettier = __esm({
|
|
|
109069
109069
|
},
|
|
109070
109070
|
/*istanbul ignore start*/
|
|
109071
109071
|
/*istanbul ignore end*/
|
|
109072
|
-
join: function
|
|
109072
|
+
join: function join22(chars) {
|
|
109073
109073
|
return chars.join("");
|
|
109074
109074
|
}
|
|
109075
109075
|
};
|
|
@@ -119955,7 +119955,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
|
|
|
119955
119955
|
var hardline3 = [hardlineWithoutBreakParent3, breakParent3];
|
|
119956
119956
|
var literalline2 = [literallineWithoutBreakParent2, breakParent3];
|
|
119957
119957
|
var cursor3 = { type: DOC_TYPE_CURSOR3 };
|
|
119958
|
-
function
|
|
119958
|
+
function join3(separator, docs) {
|
|
119959
119959
|
assertDoc3(separator);
|
|
119960
119960
|
assertDocArray3(docs);
|
|
119961
119961
|
const parts = [];
|
|
@@ -120367,7 +120367,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
|
|
|
120367
120367
|
return mapDoc3(doc, (currentDoc) => cleanDocFn3(currentDoc));
|
|
120368
120368
|
}
|
|
120369
120369
|
function replaceEndOfLine2(doc, replacement = literalline2) {
|
|
120370
|
-
return mapDoc3(doc, (currentDoc) => typeof currentDoc === "string" ?
|
|
120370
|
+
return mapDoc3(doc, (currentDoc) => typeof currentDoc === "string" ? join3(replacement, currentDoc.split("\n")) : currentDoc);
|
|
120371
120371
|
}
|
|
120372
120372
|
function canBreakFn2(doc) {
|
|
120373
120373
|
if (doc.type === DOC_TYPE_LINE3) {
|
|
@@ -120942,7 +120942,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
|
|
|
120942
120942
|
};
|
|
120943
120943
|
}
|
|
120944
120944
|
var builders2 = {
|
|
120945
|
-
join:
|
|
120945
|
+
join: join3,
|
|
120946
120946
|
line: line3,
|
|
120947
120947
|
softline: softline2,
|
|
120948
120948
|
hardline: hardline3,
|
|
@@ -141400,7 +141400,7 @@ var require_util3 = __commonJS({
|
|
|
141400
141400
|
return path9;
|
|
141401
141401
|
}
|
|
141402
141402
|
exports.normalize = normalize;
|
|
141403
|
-
function
|
|
141403
|
+
function join3(aRoot, aPath) {
|
|
141404
141404
|
if (aRoot === "") {
|
|
141405
141405
|
aRoot = ".";
|
|
141406
141406
|
}
|
|
@@ -141432,7 +141432,7 @@ var require_util3 = __commonJS({
|
|
|
141432
141432
|
}
|
|
141433
141433
|
return joined;
|
|
141434
141434
|
}
|
|
141435
|
-
exports.join =
|
|
141435
|
+
exports.join = join3;
|
|
141436
141436
|
exports.isAbsolute = function(aPath) {
|
|
141437
141437
|
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
|
141438
141438
|
};
|
|
@@ -141605,7 +141605,7 @@ var require_util3 = __commonJS({
|
|
|
141605
141605
|
parsed.path = parsed.path.substring(0, index + 1);
|
|
141606
141606
|
}
|
|
141607
141607
|
}
|
|
141608
|
-
sourceURL =
|
|
141608
|
+
sourceURL = join3(urlGenerate(parsed), sourceURL);
|
|
141609
141609
|
}
|
|
141610
141610
|
return normalize(sourceURL);
|
|
141611
141611
|
}
|
|
@@ -530062,9 +530062,22 @@ var require_jest = __commonJS({
|
|
|
530062
530062
|
}
|
|
530063
530063
|
});
|
|
530064
530064
|
|
|
530065
|
-
// packages/testing-tools/src/jest/config.ts
|
|
530065
|
+
// packages/testing-tools/src/jest/package.config.ts
|
|
530066
|
+
import { join } from "path";
|
|
530067
|
+
var getJestConfig = (projectDir, isNode = true, displayName) => ({
|
|
530068
|
+
displayName: displayName ? displayName : projectDir.replaceAll("\\", "-").replaceAll("/", "-"),
|
|
530069
|
+
preset: "@storm-software/testing-tools/jest/preset.js",
|
|
530070
|
+
testEnvironment: isNode ? "node" : "jsdom",
|
|
530071
|
+
transform: {
|
|
530072
|
+
"^.+\\.[tj]s$": ["ts-jest", { tsconfig: "<rootDir>/tsconfig.spec.json" }]
|
|
530073
|
+
},
|
|
530074
|
+
moduleFileExtensions: ["ts", "js", "html"],
|
|
530075
|
+
coverageDirectory: join("../../coverage", projectDir)
|
|
530076
|
+
});
|
|
530077
|
+
|
|
530078
|
+
// packages/testing-tools/src/jest/workspace.config.ts
|
|
530066
530079
|
var import_jest = __toESM(require_jest());
|
|
530067
|
-
var
|
|
530080
|
+
var workspace_config_default = {
|
|
530068
530081
|
/**
|
|
530069
530082
|
* 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.
|
|
530070
530083
|
* This is great for monorepos or when working on multiple projects at the same time.
|
|
@@ -530113,6 +530126,9 @@ var config_default = {
|
|
|
530113
530126
|
"\\.(css|less)$": "@storm-software/testing-tools/jest/__mocks__/style.mock.js"
|
|
530114
530127
|
}
|
|
530115
530128
|
};
|
|
530129
|
+
export {
|
|
530130
|
+
getJestConfig
|
|
530131
|
+
};
|
|
530116
530132
|
/*! Bundled license information:
|
|
530117
530133
|
|
|
530118
530134
|
ejs/lib/ejs.js:
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { join } from "path";
|
|
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
|
+
export const getJestConfig = (
|
|
20
|
+
projectDir: string,
|
|
21
|
+
isNode = true,
|
|
22
|
+
displayName?: string
|
|
23
|
+
) => ({
|
|
24
|
+
displayName: displayName
|
|
25
|
+
? displayName
|
|
26
|
+
: projectDir.replaceAll("\\", "-").replaceAll("/", "-"),
|
|
27
|
+
preset: "@storm-software/testing-tools/jest/preset.js",
|
|
28
|
+
testEnvironment: isNode ? "node" : "jsdom",
|
|
29
|
+
transform: {
|
|
30
|
+
"^.+\\.[tj]s$": ["ts-jest", { tsconfig: "<rootDir>/tsconfig.spec.json" }]
|
|
31
|
+
},
|
|
32
|
+
moduleFileExtensions: ["ts", "js", "html"],
|
|
33
|
+
coverageDirectory: join("../../coverage", projectDir)
|
|
34
|
+
});
|
package/package.json
CHANGED
|
File without changes
|