@amedia/jest-config 2.1.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 +21 -0
- package/README.md +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
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
|
+
|
|
3
24
|
## 2.1.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Amedia's shared Jest base configuration. Sensible defaults for coverage,
|
|
4
4
|
test environment, and verbosity.
|
|
5
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
|
+
|
|
6
10
|
## Install
|
|
7
11
|
|
|
8
12
|
```sh
|