@powerlines/plugin-jest 0.1.686 → 0.1.687

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 (2) hide show
  1. package/README.md +34 -0
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -74,6 +74,40 @@ A package containing the Jest testing plugin for Powerlines, various helper util
74
74
 
75
75
  <!-- END doctoc -->
76
76
 
77
+ ## Features
78
+
79
+ - Runs Jest testing through the Powerlines plugin pipeline.
80
+ - Passes `test.jest` config fields through to the Jest CLI.
81
+ - Ships shared Jest configurations and helper utilities.
82
+
83
+ ## Usage
84
+
85
+ Install the package:
86
+
87
+ ```bash
88
+ pnpm add @powerlines/plugin-jest
89
+ ```
90
+
91
+ Register the plugin in `powerlines.config.ts`:
92
+
93
+ ```ts
94
+ import { defineConfig } from "powerlines/config";
95
+ import { plugin as jest } from "@powerlines/plugin-jest";
96
+
97
+ export default defineConfig({
98
+ plugins: [jest({ testFile: "src/index.test.ts" })],
99
+ test: {
100
+ jest: { runInBand: true }
101
+ }
102
+ });
103
+ ```
104
+
105
+ Then run the tests:
106
+
107
+ ```bash
108
+ powerlines test
109
+ ```
110
+
77
111
  ## Installing
78
112
 
79
113
  Using [pnpm](http://pnpm.io):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-jest",
3
- "version": "0.1.686",
3
+ "version": "0.1.687",
4
4
  "type": "module",
5
5
  "description": "A package containing the Jest testing plugin for Powerlines.",
6
6
  "repository": {
@@ -103,13 +103,13 @@
103
103
  "jest-config": "^30.5.2",
104
104
  "jest-resolve": "^30.5.1",
105
105
  "jest-util": "^30.5.1",
106
- "powerlines": "^0.47.216"
106
+ "powerlines": "^0.47.217"
107
107
  },
108
108
  "devDependencies": {
109
- "@powerlines/plugin-plugin": "^0.12.629",
109
+ "@powerlines/plugin-plugin": "^0.12.630",
110
110
  "@types/jest": "^30.0.0"
111
111
  },
112
112
  "publishConfig": { "access": "public" },
113
113
  "types": "./dist/index.d.cts",
114
- "gitHead": "75efa1cc4eb8bc90093202669065576aa70fbfef"
114
+ "gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
115
115
  }