@amedia/jest-config 2.0.0 → 2.1.1
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 +41 -0
- package/README.md +40 -0
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# @amedia/jest-config
|
|
2
2
|
|
|
3
|
+
## 2.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0e94998: Support Vitest and deprecate Jest. Most projects have moved to Vitest or the
|
|
8
|
+
Node.js test runner.
|
|
9
|
+
|
|
10
|
+
- Add `@amedia/eslint-config-vitest`, which bundles `@vitest/eslint-plugin`
|
|
11
|
+
with the same rules as the Jest config. It applies to `*.test.*` and
|
|
12
|
+
`*.spec.*` files in JavaScript and TypeScript, and declares the Vitest
|
|
13
|
+
globals for projects that run Vitest with `globals: true`.
|
|
14
|
+
- Add a `vitest` toggle to `eslintConfig`. Kragl turns it on when the
|
|
15
|
+
project depends on `vitest`, in both `kragl install` and the fallback
|
|
16
|
+
config.
|
|
17
|
+
- In `@amedia/biome-config`, apply the test-file override to TypeScript and
|
|
18
|
+
JSX tests too, and add the Vitest globals.
|
|
19
|
+
- Deprecate `@amedia/kragl-jest`, `@amedia/jest-config`,
|
|
20
|
+
`@amedia/eslint-config-jest` and the `jest` toggle. `kragl-jest` now
|
|
21
|
+
prints a deprecation warning when it runs. The Node.js test runner needs
|
|
22
|
+
no lint toggle, because `node:test` is imported like any other module.
|
|
23
|
+
|
|
24
|
+
## 2.1.0
|
|
25
|
+
|
|
26
|
+
### Minor Changes
|
|
27
|
+
|
|
28
|
+
- 326dc56: Declare `engines.node: ">=22"` on every published package. Matches the
|
|
29
|
+
constraint already set at the repository root. Consumers on older Node versions
|
|
30
|
+
will see an `npm WARN` on install (or an error with `engine-strict=true`).
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- 7577d72: Rewrite all package READMEs to a consistent `# Title / tagline / Install / Use
|
|
35
|
+
/ Notes` shape. Drops stale `.eslintrc.js` / CJS examples, removes redundant
|
|
36
|
+
"install plugin X yourself" instructions for plugins that are now bundled,
|
|
37
|
+
and adds READMEs for the eight packages that previously had none
|
|
38
|
+
(`biome-config`, `browserslist-config`, `jest-config`, `kragl-eslint`,
|
|
39
|
+
`kragl-lockfile-lint`, `kragl-ls-lint`, `kragl-utils`).
|
|
40
|
+
|
|
41
|
+
The `@amedia/eslint-config-react` README now documents its temporary freeze
|
|
42
|
+
on the previous major.
|
|
43
|
+
|
|
3
44
|
## 2.0.0
|
|
4
45
|
|
|
5
46
|
### Major Changes
|
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# @amedia/jest-config
|
|
2
|
+
|
|
3
|
+
Amedia's shared Jest base configuration. Sensible defaults for coverage,
|
|
4
|
+
test environment, and verbosity.
|
|
5
|
+
|
|
6
|
+
> **Deprecated.** Jest support is deprecated and will be removed in a future
|
|
7
|
+
> major version. Move the tests to [Vitest](https://vitest.dev) or the
|
|
8
|
+
> [Node.js test runner](https://nodejs.org/api/test.html).
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
npm install --save-dev @amedia/jest-config jest
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Use
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
// jest.config.js
|
|
20
|
+
import base from '@amedia/jest-config';
|
|
21
|
+
|
|
22
|
+
export default base;
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Or extend it with project-specific options:
|
|
26
|
+
|
|
27
|
+
```js
|
|
28
|
+
// jest.config.js
|
|
29
|
+
import base from '@amedia/jest-config';
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
...base,
|
|
33
|
+
setupFilesAfterEach: ['<rootDir>/jest.setup.js'],
|
|
34
|
+
};
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Notes
|
|
38
|
+
|
|
39
|
+
Requires Node 22+. Run Jest through [`@amedia/kragl-jest`](../kragl-jest) for
|
|
40
|
+
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.1",
|
|
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
|
}
|