Major Changes
-
5b6df81:
@xstate/test/effect-schemanow requires stable Effect 4 (effect@^4.0.0).fromEffectSchema()builds fast-check arbitraries from the schema's AST. It supports primitives, literals, enums, unions, arrays, tuples, structs with optional properties, records with string keys, and refinements. Unsupported nodes such asSchema.Datethrow an error naming the node. Passoverrideto supply an arbitrary for them:import * as fc from 'fast-check'; import * as Schema from 'effect/Schema'; import { fromEffectSchema } from '@xstate/test/effect-schema'; fromEffectSchema(Schema.Struct({ at: Schema.Date }), { override: (ast) => ast._tag === 'Declaration' ? fc.date({ noInvalidDate: true }) : undefined });
-
5b6df81: The
@xstate/testentry point no longer exports the internal typesPropertyExecutionConfigandPropertyTargetObservation.The
vitestpeer dependency now accepts Vitest 3 and Vitest 4.