@powerlines/plugin-jest 0.1.136 → 0.1.137

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.
Files changed (20) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.d.mts +1 -2
  3. package/dist/index.mjs +1 -1
  4. 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
  5. 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
  6. package/dist/{powerlines → packages/powerlines}/src/internal/helpers/hooks.d.mts +0 -2
  7. package/dist/{powerlines → packages/powerlines}/src/types/commands.d.mts +0 -1
  8. package/dist/{powerlines → packages/powerlines}/src/types/config.d.mts +2 -2
  9. package/dist/{powerlines → packages/powerlines}/src/types/unplugin.d.mts +0 -1
  10. package/dist/types/plugin.d.mts +3 -3
  11. package/package.json +4 -4
  12. package/dist/powerlines/src/types/babel.d.mts +0 -2
  13. /package/dist/{powerlines → packages/powerlines}/src/types/api.d.mts +0 -0
  14. /package/dist/{powerlines → packages/powerlines}/src/types/build.d.mts +0 -0
  15. /package/dist/{powerlines → packages/powerlines}/src/types/context.d.mts +0 -0
  16. /package/dist/{powerlines → packages/powerlines}/src/types/fs.d.mts +0 -0
  17. /package/dist/{powerlines → packages/powerlines}/src/types/hooks.d.mts +0 -0
  18. /package/dist/{powerlines → packages/powerlines}/src/types/plugin.d.mts +0 -0
  19. /package/dist/{powerlines → packages/powerlines}/src/types/resolved.d.mts +0 -0
  20. /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
- let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
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(__storm_software_config_tools_types.LogLevelLabel.INFO, `
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/types";
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,5 +1,3 @@
1
- import "../../types/hooks.mjs";
2
- import "../../types/resolved.mjs";
3
1
  import { SelectHooksOptions } from "../../types/context.mjs";
4
2
  import { MaybePromise } from "@stryke/types/base";
5
3
 
@@ -1,4 +1,3 @@
1
- import "./context.mjs";
2
1
  import { ArrayValues } from "@stryke/types/array";
3
2
  import { MaybePromise } from "@stryke/types/base";
4
3
 
@@ -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
@@ -1,5 +1,4 @@
1
1
  import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant } from "./build.mjs";
2
- import "./config.mjs";
3
2
  import { InferResolvedConfig } from "./resolved.mjs";
4
3
  import { Context } from "./context.mjs";
5
4
  import { API } from "./api.mjs";
@@ -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.136",
3
+ "version": "0.1.137",
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.2"
130
+ "powerlines": "^0.37.3"
131
131
  },
132
132
  "devDependencies": {
133
133
  "@jest/types": "^30.2.0",
134
- "@powerlines/nx": "^0.11.58",
134
+ "@powerlines/plugin-plugin": "^0.12.81",
135
135
  "@types/jest": "^30.0.0"
136
136
  },
137
137
  "publishConfig": { "access": "public" },
138
- "gitHead": "5a9bfc9333eca98a453682f39a04a0d642930a50"
138
+ "gitHead": "ae9a5afaa497538477b63988242f433b60974623"
139
139
  }
@@ -1,2 +0,0 @@
1
- import "./config.mjs";
2
- import "./context.mjs";