/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import Layout from '@theme/Layout'; import Link from '@docusaurus/Link'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import versions from '@site/versions.json'; import ArchivedVersions from '@site/archivedVersions.json'; // TODO legacy Docusaurus v1 components import Container from '@site/src/components/v1/Container'; export default function VersionsPage() { const {siteConfig} = useDocusaurusContext(); const latestVersion = versions[0]; return (

{`${siteConfig.title} Versions`}

Current version (Stable)

Latest stable version of Jest

{latestVersion} Documentation Release Notes

Latest version

Here you can find the latest unreleased documentation and code.

main Documentation Source Code

Past Versions

Here you can find documentation for previous versions of Jest.

{versions.map( version => version !== latestVersion && ( ) )}
{version} Documentation

Archived Versions

Here you can find archived documentation for older versions of Jest.

{Object.entries(ArchivedVersions).map( ([version, versionUrl]) => version !== latestVersion && ( ) )}
{version} Documentation
); }