{ lib, name }:
let
  withDefaultStateVersion = module: {
    imports = [ module ];

    # Stronger than the global test default, but weaker than any test-local
    # stateVersion assignment.
    home.stateVersion = lib.mkOverride 900 "26.05";
  };
in
builtins.mapAttrs
  (
    _test: module:
    withDefaultStateVersion (
      import module [
        "programs"
        name
      ]
    )
  )
  {
    "${name}-deprecated-native-messenger" = ./deprecated-native-messenger.nix;
    "${name}-null-package" = ./null-package.nix;
    "${name}-final-package" = ./final-package.nix;
    "${name}-policies" = ./policies.nix;
    "${name}-profiles-bookmarks" = ./profiles/bookmarks;
    "${name}-profiles-bookmarks-attrset" = ./profiles/bookmarks/attrset.nix;
    "${name}-profiles-containers" = ./profiles/containers;
    "${name}-profiles-containers-duplicate-ids" = ./profiles/containers/duplicate-ids.nix;
    "${name}-profiles-containers-id-out-of-range" = ./profiles/containers/id-out-of-range.nix;
    "${name}-profiles-containers-id-zero" = ./profiles/containers/id-zero.nix;
    "${name}-profiles-duplicate-ids" = ./profiles/duplicate-ids.nix;
    "${name}-profiles-extensions" = ./profiles/extensions;
    "${name}-profiles-extensions-assertions" = ./profiles/extensions/assertions.nix;
    "${name}-profiles-extensions-extensible" = ./profiles/extensions/extensible.nix;
    "${name}-profiles-extensions-exhaustive" = ./profiles/extensions/exhaustive.nix;
    "${name}-profiles-extensions-exact" = ./profiles/extensions/exact.nix;
    "${name}-profiles-handlers" = ./profiles/handlers;
    "${name}-profiles-overwrite" = ./profiles/overwrite;
    "${name}-profiles-search" = ./profiles/search;
    "${name}-profiles-settings" = ./profiles/settings;
    "${name}-profiles-userchrome" = ./profiles/userchrome;
    "${name}-state-version-19_09" = ./state-version-19_09.nix;
    "${name}-profiles-shared-path" = ./profiles/shared-path.nix;
  }
