npm / tstyche
tstyche
What changed in tstyche 5 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.
31 breaking1 deprecations16 new APIs and options8 behavior and defaults15 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inittstyche 728 changes
Breaking changes 11
The experimental when() helper was removed.
The
addsText()component is renamed.Cli#run()now returns an exit code.Removes the
rootPathconfiguration option.Passing type arguments to the
.toAcceptProps()matcher is disallowed.Renames the
tsconfigconfiguration optionignoretobaseline.Incompatible TSConfig options are now reported.
Renames the
tstyche/tstycheentry point totstyche/api.The default configuration file location changes to
./tstyche.json.The
usesText()component is renamed.Removes
verbatimModuleSyntaxfrom the default compiler options.
Deprecations 1
The
.toRaiseError()matcher is deprecated.
New APIs and options 4
Adds an environment variable to configure fetch retries.
Adds an environment variable to configure fetch timeouts.
Publishes a configuration schema enabling local reference.
Adds the
.toBeInstantiableWith()matcher.
Behavior and default changes 5
Adds retry logic for fetch requests.
Test files are always sorted by name in watch mode.
Type-structure checking now ignores the order of index signatures.
Checking now includes
@ts-expect-errordirectives in multi-line comments.The
tsconfigconfiguration accepts a JSON string.
Fixes and other changes 7
Unused type parameters are ignored when comparing type references.
Prevents infinite recursion when comparing self-referential generic types.
Handles reduced types when comparing type structures, improving type comparison behavior.
Uses TypeScript v6 when v7 is installed.
Improves validation of arguments passed to the matcher.
Validates the JSX setup for the matcher.
Fixes argument length detection for this matcher.
tstyche 614 changes
Breaking changes 4
Node.js 20 is no longer supported, so developers must use a supported Node.js version.
The matcher now uses structure comparison, changing how
.toBe()compares values.Support for TSTyche plugins has been removed, affecting projects that rely on plugins.
TypeScript versions 5.3 and earlier are no longer supported.
New APIs and options 6
Adds the dot reporter.
Adds the verbose configuration option.
Adds the --verbose command line option.
Adds the --quiet command line option.
Adds the --root command line option.
Adds the tstyche/tag entry point.
Behavior and default changes 1
Type structure checking now ignores unused type parameters in call signatures.
Fixes and other changes 3
Type structure checking now takes predicate parameter position into account.
Deduplicates complex unions and intersections when checking type structure.
Type structure checking now compares the target type of type references.
tstyche 529 changes
Breaking changes 16
The default compiler options now enable allowJs.
The default compiler options now enable checkJs.
Removes allowJs from the default compiler options.
Removes checkJs from the default compiler options.
Removes the checkSourceFiles configuration option.
Enables the checkSuppressedErrors option by default.
Removes the .fail run mode flag.
Drops support for some older Node.js 20 versions.
Removes the diagnostics property from *Result.
ResultCounts is exported as a type only.
Removes getters from ResultCounts.
ResultTiming is exported as a type only.
Removes getters from ResultTiming.
The target option now accepts only a semver string value.
Renames
.toBeAssignableWith()to.toBeAssignableFrom().Support for TypeScript 4.x is dropped.
New APIs and options 6
Adds the checkDeclarationFiles configuration option.
Reports counts of checked suppressed errors.
Adds the It member to TestTreeNodeBrand.
Adds a matcher for testing whether provided types are callable with given arguments.
Adds a matcher for testing whether provided types are constructable with given arguments.
Adds a directive for marking fixme cases.
Behavior and default changes 2
Suppressed error messages can be truncated with
....Changes the default target value to
"*".
Fixes and other changes 5
Broken symlinks are handled during test file lookup.
Maps ability diagnostics more precisely.
Adds validation for assertion and action chains.
Handles leading tabs when collecting directives.
Passes testTree to SuppressedService#match().