@amedia/jest-config 2.0.0 → 2.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 +20 -0
- package/README.md +36 -0
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @amedia/jest-config
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 326dc56: Declare `engines.node: ">=22"` on every published package. Matches the
|
|
8
|
+
constraint already set at the repository root. Consumers on older Node versions
|
|
9
|
+
will see an `npm WARN` on install (or an error with `engine-strict=true`).
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 7577d72: Rewrite all package READMEs to a consistent `# Title / tagline / Install / Use
|
|
14
|
+
/ Notes` shape. Drops stale `.eslintrc.js` / CJS examples, removes redundant
|
|
15
|
+
"install plugin X yourself" instructions for plugins that are now bundled,
|
|
16
|
+
and adds READMEs for the eight packages that previously had none
|
|
17
|
+
(`biome-config`, `browserslist-config`, `jest-config`, `kragl-eslint`,
|
|
18
|
+
`kragl-lockfile-lint`, `kragl-ls-lint`, `kragl-utils`).
|
|
19
|
+
|
|
20
|
+
The `@amedia/eslint-config-react` README now documents its temporary freeze
|
|
21
|
+
on the previous major.
|
|
22
|
+
|
|
3
23
|
## 2.0.0
|
|
4
24
|
|
|
5
25
|
### Major Changes
|
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# @amedia/jest-config
|
|
2
|
+
|
|
3
|
+
Amedia's shared Jest base configuration. Sensible defaults for coverage,
|
|
4
|
+
test environment, and verbosity.
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```sh
|
|
9
|
+
npm install --save-dev @amedia/jest-config jest
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Use
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
// jest.config.js
|
|
16
|
+
import base from '@amedia/jest-config';
|
|
17
|
+
|
|
18
|
+
export default base;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Or extend it with project-specific options:
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
// jest.config.js
|
|
25
|
+
import base from '@amedia/jest-config';
|
|
26
|
+
|
|
27
|
+
export default {
|
|
28
|
+
...base,
|
|
29
|
+
setupFilesAfterEach: ['<rootDir>/jest.setup.js'],
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Notes
|
|
34
|
+
|
|
35
|
+
Requires Node 22+. Run Jest through [`@amedia/kragl-jest`](../kragl-jest) for
|
|
36
|
+
the standard kragl pipeline.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amedia/jest-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Jest config for Amedia",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -13,5 +13,8 @@
|
|
|
13
13
|
"license": "ISC",
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=22"
|
|
16
19
|
}
|
|
17
20
|
}
|