kvalita 1.24.2 → 1.24.3
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/README.md
CHANGED
|
@@ -32,7 +32,6 @@ Create a `biome.json` file in your project root:
|
|
|
32
32
|
|
|
33
33
|
The config also runs GritQL plugins. Most of them target Bun tests:
|
|
34
34
|
|
|
35
|
-
- `await` before `expect(...).rejects`, since Bun tracks that assertion on its own.
|
|
36
35
|
- A callback written inline in `expect(() => fn()).toThrow()`, which reads better as `const throwing = () => fn()`.
|
|
37
36
|
- `const expected = value`, where asserting against `value` says the input comes back unchanged.
|
|
38
37
|
- `const expected = true` or `false`, where the boolean reads better inline in `toBe()`.
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
"$schema": "https://biomejs.dev/schemas/latest/schema.json",
|
|
3
3
|
"root": false,
|
|
4
4
|
"plugins": [
|
|
5
|
-
"./node_modules/kvalita/configs/biome/no-await-expect-rejects.grit",
|
|
6
5
|
"./node_modules/kvalita/configs/biome/no-double-cast.grit",
|
|
7
6
|
"./node_modules/kvalita/configs/biome/no-expected-alias.grit",
|
|
8
7
|
"./node_modules/kvalita/configs/biome/no-expected-boolean.grit",
|
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
language js
|
|
2
|
-
|
|
3
|
-
`await expect($value).rejects.$matcher($args)` where {
|
|
4
|
-
register_diagnostic(span=$value, message="Drop the await: Bun tracks an expect(...).rejects assertion on its own. Name the call as `const throwing = () => fn()` and assert `expect(throwing()).rejects...`.")
|
|
5
|
-
}
|