@powerlines/plugin-jest 0.1.136 → 0.1.138
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/dist/index.cjs +2 -2
- package/dist/index.d.mts +1 -2
- package/dist/index.mjs +1 -1
- package/dist/node_modules/.pnpm/@storm-software_config-tools@1.188.75_magicast@0.5.1/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.cjs +16 -0
- package/dist/node_modules/.pnpm/@storm-software_config-tools@1.188.75_magicast@0.5.1/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.mjs +15 -0
- package/dist/{powerlines → packages/powerlines}/src/internal/helpers/hooks.d.mts +0 -2
- package/dist/{powerlines → packages/powerlines}/src/types/commands.d.mts +0 -1
- package/dist/{powerlines → packages/powerlines}/src/types/config.d.mts +2 -2
- package/dist/{powerlines → packages/powerlines}/src/types/unplugin.d.mts +0 -1
- package/dist/types/plugin.d.mts +3 -3
- package/package.json +4 -4
- package/dist/powerlines/src/types/babel.d.mts +0 -2
- /package/dist/{powerlines → packages/powerlines}/src/types/api.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/build.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/context.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/fs.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/hooks.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/plugin.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/resolved.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/tsconfig.d.mts +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
|
-
|
|
3
|
+
const require_chunk_POXTJ6GF = require('./node_modules/.pnpm/@storm-software_config-tools@1.188.75_magicast@0.5.1/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.cjs');
|
|
4
4
|
let __stryke_path_join = require("@stryke/path/join");
|
|
5
5
|
let chalk = require("chalk");
|
|
6
6
|
chalk = require_rolldown_runtime.__toESM(chalk);
|
|
@@ -92,7 +92,7 @@ const plugin = (options = {}) => {
|
|
|
92
92
|
const suites = `${chalk.default.bold("Test Suites: ") + (suitesFailed ? `${chalk.default.bold(chalk.default.red(`${suitesFailed} failed`))}, ` : "") + (suitesPending ? `${chalk.default.bold(chalk.default.yellow(`${suitesPending} skipped`))}, ` : "") + (suitesPassed ? `${chalk.default.bold(chalk.default.green(`${suitesPassed} passed`))}, ` : "") + (suitesRun !== suitesTotal ? `${suitesRun} of ${suitesTotal}` : suitesTotal)} total`;
|
|
93
93
|
const tests = `${chalk.default.bold("Tests: ") + (testsFailed > 0 ? `${chalk.default.bold(chalk.default.red(`${testsFailed} failed`))}, ` : "") + (testsPending > 0 ? `${chalk.default.bold(chalk.default.yellow(`${testsPending} skipped`))}, ` : "") + (testsTodo > 0 ? `${chalk.default.bold(chalk.default.magenta(`${testsTodo} todo`))}, ` : "") + (testsPassed > 0 ? `${chalk.default.bold(chalk.default.green(`${testsPassed} passed`))}, ` : "")}${testsTotal} total`;
|
|
94
94
|
const snapshots = `${chalk.default.bold("Snapshots: ") + (snapshotsFailed ? `${chalk.default.bold(chalk.default.red(`${snapshotsFailed} failed`))}, ` : "") + (snapshotsOutdated && !snapshotsDidUpdate ? `${chalk.default.bold(chalk.default.yellow(`${snapshotsOutdated} obsolete`))}, ` : "") + (snapshotsOutdated && snapshotsDidUpdate ? `${chalk.default.bold(chalk.default.green(`${snapshotsOutdated} removed`))}, ` : "") + (snapshotsFilesRemoved && !snapshotsDidUpdate ? `${chalk.default.bold(chalk.default.yellow(`${(0, jest_util.pluralize)("file", snapshotsFilesRemoved)} obsolete`))}, ` : "") + (snapshotsFilesRemoved && snapshotsDidUpdate ? `${chalk.default.bold(chalk.default.green(`${(0, jest_util.pluralize)("file", snapshotsFilesRemoved)} removed`))}, ` : "") + (snapshotsUpdated ? `${chalk.default.bold(chalk.default.green(`${snapshotsUpdated} updated`))}, ` : "") + (snapshotsAdded ? `${chalk.default.bold(chalk.default.green(`${snapshotsAdded} written`))}, ` : "") + (snapshotsPassed ? `${chalk.default.bold(chalk.default.green(`${snapshotsPassed} passed`))}, ` : "")}${snapshotsTotal} total`;
|
|
95
|
-
this.log(
|
|
95
|
+
this.log(require_chunk_POXTJ6GF.LogLevelLabel.INFO, `
|
|
96
96
|
${chalk.default.bold(`Test result summary:`)}
|
|
97
97
|
${suites}
|
|
98
98
|
${tests}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Plugin } from "./powerlines/src/types/plugin.mjs";
|
|
1
|
+
import { Plugin } from "./packages/powerlines/src/types/plugin.mjs";
|
|
2
2
|
import { JestPluginContext, JestPluginOptions, JestPluginResolvedConfig, JestPluginUserConfig, __ΩJestPluginContext, __ΩJestPluginOptions, __ΩJestPluginResolvedConfig, __ΩJestPluginUserConfig } from "./types/plugin.mjs";
|
|
3
|
-
import "./types/index.mjs";
|
|
4
3
|
|
|
5
4
|
//#region src/index.d.ts
|
|
6
5
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LogLevelLabel } from "@storm-software/config-tools/
|
|
1
|
+
import { LogLevelLabel } from "./node_modules/.pnpm/@storm-software_config-tools@1.188.75_magicast@0.5.1/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.mjs";
|
|
2
2
|
import { joinPaths } from "@stryke/path/join";
|
|
3
3
|
import chalk from "chalk";
|
|
4
4
|
import { runCLI } from "jest";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.188.75_magicast@0.5.1/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js
|
|
3
|
+
var LogLevelLabel = {
|
|
4
|
+
SILENT: "silent",
|
|
5
|
+
FATAL: "fatal",
|
|
6
|
+
ERROR: "error",
|
|
7
|
+
WARN: "warn",
|
|
8
|
+
SUCCESS: "success",
|
|
9
|
+
INFO: "info",
|
|
10
|
+
DEBUG: "debug",
|
|
11
|
+
TRACE: "trace",
|
|
12
|
+
ALL: "all"
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.LogLevelLabel = LogLevelLabel;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.188.75_magicast@0.5.1/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js
|
|
2
|
+
var LogLevelLabel = {
|
|
3
|
+
SILENT: "silent",
|
|
4
|
+
FATAL: "fatal",
|
|
5
|
+
ERROR: "error",
|
|
6
|
+
WARN: "warn",
|
|
7
|
+
SUCCESS: "success",
|
|
8
|
+
INFO: "info",
|
|
9
|
+
DEBUG: "debug",
|
|
10
|
+
TRACE: "trace",
|
|
11
|
+
ALL: "all"
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { LogLevelLabel };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.mjs";
|
|
2
|
-
import "./babel.mjs";
|
|
3
2
|
import { StoragePort, StoragePreset } from "./fs.mjs";
|
|
4
3
|
import { TSConfig } from "./tsconfig.mjs";
|
|
5
4
|
import { PluginContext } from "./context.mjs";
|
|
6
5
|
import { Plugin } from "./plugin.mjs";
|
|
7
|
-
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
8
6
|
import { MaybePromise } from "@stryke/types/base";
|
|
9
7
|
import { PreviewOptions } from "vite";
|
|
10
8
|
import { Format } from "@storm-software/build-tools/types";
|
|
9
|
+
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
11
10
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
12
11
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
13
12
|
import { AssetGlob } from "@stryke/types/file";
|
|
14
13
|
import { DateString } from "compatx";
|
|
15
14
|
|
|
16
15
|
//#region ../powerlines/src/types/config.d.ts
|
|
16
|
+
|
|
17
17
|
type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
|
|
18
18
|
/**
|
|
19
19
|
* The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UserConfig } from "../powerlines/src/types/config.mjs";
|
|
2
|
-
import { ResolvedConfig } from "../powerlines/src/types/resolved.mjs";
|
|
3
|
-
import { PluginContext } from "../powerlines/src/types/context.mjs";
|
|
1
|
+
import { UserConfig } from "../packages/powerlines/src/types/config.mjs";
|
|
2
|
+
import { ResolvedConfig } from "../packages/powerlines/src/types/resolved.mjs";
|
|
3
|
+
import { PluginContext } from "../packages/powerlines/src/types/context.mjs";
|
|
4
4
|
import { Config } from "@jest/types";
|
|
5
5
|
|
|
6
6
|
//#region src/types/plugin.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-jest",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.138",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing the Jest testing plugin for Powerlines.",
|
|
6
6
|
"repository": {
|
|
@@ -127,13 +127,13 @@
|
|
|
127
127
|
"jest-config": "^30.2.0",
|
|
128
128
|
"jest-resolve": "^30.2.0",
|
|
129
129
|
"jest-util": "^30.2.0",
|
|
130
|
-
"powerlines": "^0.37.
|
|
130
|
+
"powerlines": "^0.37.4"
|
|
131
131
|
},
|
|
132
132
|
"devDependencies": {
|
|
133
133
|
"@jest/types": "^30.2.0",
|
|
134
|
-
"@powerlines/
|
|
134
|
+
"@powerlines/plugin-plugin": "^0.12.82",
|
|
135
135
|
"@types/jest": "^30.0.0"
|
|
136
136
|
},
|
|
137
137
|
"publishConfig": { "access": "public" },
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "48a35579bd5535a267a420c160c273899920b2e7"
|
|
139
139
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|