@systemfsoftware/vitest 4.1.1 → 4.1.2
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
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# @systemfsoftware/vitest
|
|
2
2
|
|
|
3
|
-
# @systemfsoftware/vitest@4.1.
|
|
3
|
+
# @systemfsoftware/vitest@4.1.2
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The recommended config now turns on every @effect/tsgo preset (correctness, recommended, strict, style, effect-native, antipattern and maintainers) at error, on @effect/tsgo 0.69.0 with oxlint 1.93.0 and oxlint-tsgolint 7.0.2006. The rules that still have findings in this repo are listed by name, each with its finding count, and stay off until the PR that fixes its findings removes it from the list. A consumer that upgrades may see findings from rules it has never run. The rules run on the consumer's own Effect-patched tsgolint, so @effect/tsgo is now a peer dependency: a consumer must move @effect/tsgo to ^0.69.0, oxlint to ~1.93.0 and oxlint-tsgolint to 7.0.2006 in the same change, and rerun `effect-tsgo patch --oxlint`. An older patched binary refuses the config with `Rule '<name>' not found in plugin 'effecttsgo'`.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
`@systemfsoftware/effect-schema-discovery` is rebuilt against the updated `@systemfsoftware/vitest`; its own behavior is unchanged.
|
|
7
|
+
A vitest test body's steps are unwound through Effect.onError, which covers the same failure and interruption cases as the earlier onExit check.
|
|
@@ -974,7 +974,7 @@ const unwind = (steps) => Effect$1.sync(() => {
|
|
|
974
974
|
});
|
|
975
975
|
const driveBody = (body, args, ledger) => Effect$1.suspend(() => {
|
|
976
976
|
const steps = body(...args);
|
|
977
|
-
return Effect$1.
|
|
977
|
+
return Effect$1.onError(Effect$1.flatMap(stepThrough(steps, ledger, void 0), () => gate(ledger)), () => unwind(steps));
|
|
978
978
|
});
|
|
979
979
|
/** The body's steps, with this test's ledger provided as the `Asserted` every check in it reaches for. */
|
|
980
980
|
const driven = (body, args, ledger) => Effect$1.provideService(driveBody(body, args, ledger), Asserted, ledger.asserted);
|
package/dist/failure.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
import { C as providedRoot, D as Replay, O as ReplayFromText, S as witnessOf, b as testIdentityOf, i as createSpanRecorder, k as replayOfText, n as recordOfProperty, r as recordOfRun, t as recordOfFile, v as renderFailureRecord, x as throwFailureRecord, y as summaryOf } from "./failure-
|
|
2
|
+
import { C as providedRoot, D as Replay, O as ReplayFromText, S as witnessOf, b as testIdentityOf, i as createSpanRecorder, k as replayOfText, n as recordOfProperty, r as recordOfRun, t as recordOfFile, v as renderFailureRecord, x as throwFailureRecord, y as summaryOf } from "./failure-B094O43o.mjs";
|
|
3
3
|
import { c as callFrameOutside, l as callSite, p as withRaisingFrame } from "./test-context-DelFkLBL.mjs";
|
|
4
4
|
export { Replay, ReplayFromText, callFrameOutside, callSite, createSpanRecorder, providedRoot as providedWorkspaceRoot, recordOfFile, recordOfProperty, recordOfRun, renderFailureRecord, replayOfText, summaryOf, testIdentityOf, throwFailureRecord, withRaisingFrame, witnessOf };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { A as providedCheckDefaults, C as providedRoot, E as Slop, T as LeakedState, _ as isFailureRecordError, a as makeProperty, b as testIdentityOf, c as NonBooleanVerdict, d as ReplayNoLongerReproduces, f as ReplayUnreadable, g as drive, h as VacuousProperty, i as createSpanRecorder, l as PropertyExhausted, m as SelfModelLaw, o as makeFileLedger, p as SeedStoreUnreadable, s as CoverageBelowMinimum, u as PropertyRefuted, w as InvalidBudget, x as throwFailureRecord } from "./failure-
|
|
2
|
+
import { A as providedCheckDefaults, C as providedRoot, E as Slop, T as LeakedState, _ as isFailureRecordError, a as makeProperty, b as testIdentityOf, c as NonBooleanVerdict, d as ReplayNoLongerReproduces, f as ReplayUnreadable, g as drive, h as VacuousProperty, i as createSpanRecorder, l as PropertyExhausted, m as SelfModelLaw, o as makeFileLedger, p as SeedStoreUnreadable, s as CoverageBelowMinimum, u as PropertyRefuted, w as InvalidBudget, x as throwFailureRecord } from "./failure-B094O43o.mjs";
|
|
3
3
|
import { i as checksFor, n as vitestTestContextKey$1, o as makeLedger, t as VitestTestContext$1 } from "./test-context-DelFkLBL.mjs";
|
|
4
4
|
import { _ as refuseScopedLiveLane, d as refuseAsyncBody, f as refuseEffectLane, g as refuseScopedLane, i as markTask, o as isRefusal$1, p as refuseHook, u as refusalOf$1, v as refuseSyncBody, x as unprovidedText } from "./guard-Ci0TyBYv.mjs";
|
|
5
5
|
import * as V from "vitest";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@systemfsoftware/vitest",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "4.1.
|
|
4
|
+
"version": "4.1.2",
|
|
5
5
|
"author": "Ryan Lee <drdgvhbh@gmail.com>",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@systemfsoftware/arethetypeswrong-cli": "^4.2.0",
|
|
58
|
-
"@systemfsoftware/oxlint-config-recommended": "^
|
|
58
|
+
"@systemfsoftware/oxlint-config-recommended": "^7.0.0",
|
|
59
59
|
"@systemfsoftware/tsconfig": "^2.1.0",
|
|
60
60
|
"@systemfsoftware/tsdown-config": "^0.1.2",
|
|
61
61
|
"@systemfsoftware/vitest-config": "^0.1.3",
|
|
62
62
|
"@types/node": "^26.6.5",
|
|
63
63
|
"effect": "^4.1.2",
|
|
64
|
-
"oxlint": "~1.
|
|
64
|
+
"oxlint": "~1.93.0",
|
|
65
65
|
"rimraf": "^6.1.3",
|
|
66
66
|
"tsdown": "^0.23.0",
|
|
67
67
|
"tstyche": "^7.2.5",
|