unstale

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 init

@unstale/cli 0.2.1 on npm

tstyche 728 changes

Breaking changes 11

  • The experimental when() helper was removed.

    7.1.0release notes

  • The addsText() component is renamed.

    7.0.0release notes

  • Cli#run() now returns an exit code.

    7.0.0release notes

  • Removes the rootPath configuration option.

    7.0.0release notes

  • Passing type arguments to the .toAcceptProps() matcher is disallowed.

    7.0.0release notes

  • Renames the tsconfig configuration option ignore to baseline.

    7.0.0release notes

  • Incompatible TSConfig options are now reported.

    7.0.0release notes

  • Renames the tstyche/tstyche entry point to tstyche/api.

    7.0.0release notes

  • The default configuration file location changes to ./tstyche.json.

    7.0.0release notes

  • The usesText() component is renamed.

    7.0.0release notes

  • Removes verbatimModuleSyntax from the default compiler options.

    7.0.0release notes

Deprecations 1

New APIs and options 4

  • Adds an environment variable to configure fetch retries.

    7.2.0release notes

  • Adds an environment variable to configure fetch timeouts.

    7.2.0release notes

  • Publishes a configuration schema enabling local reference.

    7.0.0release notes

  • Adds the .toBeInstantiableWith() matcher.

    7.0.0release notes

Behavior and default changes 5

  • Adds retry logic for fetch requests.

    7.2.0release notes

  • Test files are always sorted by name in watch mode.

    7.2.0release notes

  • Type-structure checking now ignores the order of index signatures.

    7.0.0release notes

  • Checking now includes @ts-expect-error directives in multi-line comments.

    7.0.0release notes

  • The tsconfig configuration accepts a JSON string.

    7.0.0release notes

Fixes and other changes 7

  • Unused type parameters are ignored when comparing type references.

    7.2.5release notes

  • Prevents infinite recursion when comparing self-referential generic types.

    7.2.4release notes

  • Handles reduced types when comparing type structures, improving type comparison behavior.

    7.2.3release notes

  • Uses TypeScript v6 when v7 is installed.

    7.2.2release notes

  • Improves validation of arguments passed to the matcher.

    7.2.1release notes

  • Validates the JSX setup for the matcher.

    7.2.1release notes

  • Fixes argument length detection for this matcher.

    7.2.0release notes

tstyche 614 changes

Breaking changes 4

  • Node.js 20 is no longer supported, so developers must use a supported Node.js version.

    6.0.0release notes

  • The matcher now uses structure comparison, changing how .toBe() compares values.

    6.0.0release notes

  • Support for TSTyche plugins has been removed, affecting projects that rely on plugins.

    6.0.0release notes

  • TypeScript versions 5.3 and earlier are no longer supported.

    6.0.0release notes

New APIs and options 6

Behavior and default changes 1

  • Type structure checking now ignores unused type parameters in call signatures.

    6.0.3release notes

Fixes and other changes 3

  • Type structure checking now takes predicate parameter position into account.

    6.0.3release notes

  • Deduplicates complex unions and intersections when checking type structure.

    6.0.2release notes

  • Type structure checking now compares the target type of type references.

    6.0.1release notes

tstyche 529 changes

Breaking changes 16

New APIs and options 6

  • Adds the checkDeclarationFiles configuration option.

    5.0.0release notes

  • Reports counts of checked suppressed errors.

    5.0.0release notes

  • Adds the It member to TestTreeNodeBrand.

    5.0.0release notes

  • Adds a matcher for testing whether provided types are callable with given arguments.

    5.0.0release notes

  • Adds a matcher for testing whether provided types are constructable with given arguments.

    5.0.0release notes

  • Adds a directive for marking fixme cases.

    5.0.0release notes

Behavior and default changes 2

Fixes and other changes 5