├── .circleci └── config.yml ├── .codecov.yml ├── .editorconfig ├── .eslintplugin └── index.mjs ├── .gitattributes ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE.md ├── ISSUE_TEMPLATE │ ├── bug.yml │ ├── config.yml │ ├── documentation.yaml │ ├── feature.yml │ └── question.yml ├── PULL_REQUEST_TEMPLATE.md ├── SUPPORT.md └── workflows │ ├── close-stale.yml │ ├── issues.yml │ ├── lock.yml │ ├── nightly.yml │ ├── nodejs.yml │ ├── prepare-cache.yml │ ├── test-nightly.yml │ └── test.yml ├── .gitignore ├── .gitpod.yml ├── .prettierignore ├── .vscode ├── extensions.json ├── launch.json ├── settings.json └── tasks.json ├── .watchmanconfig ├── .yarn ├── patches │ ├── lru-cache-npm-10.4.3-30c10b861a.patch │ └── ts-node-npm-10.9.1-6c268be7f4.patch ├── plugins │ └── @yarnpkg │ │ ├── plugin-constraints.cjs │ │ ├── plugin-interactive-tools.cjs │ │ └── plugin-workspace-tools.cjs └── releases │ └── yarn-3.8.7.cjs ├── .yarnrc.yml ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── GOVERNANCE.md ├── LICENSE ├── PROJECT_CHARTER.md ├── README.md ├── SECURITY.md ├── babel.config.js ├── benchmarks └── test-file-overhead │ ├── .gitignore │ ├── 0.test.js │ ├── README.md │ ├── package.json │ ├── prepare.sh │ └── yarn.lock ├── constraints.pro ├── crowdin.yaml ├── docs ├── Architecture.md ├── BypassingModuleMocks.md ├── CLI.md ├── CodeTransformation.md ├── Configuration.md ├── DynamoDB.md ├── ECMAScriptModules.md ├── EnvironmentVariables.md ├── Es6ClassMocks.md ├── ExpectAPI.md ├── GettingStarted.md ├── GlobalAPI.md ├── JestCommunity.md ├── JestObjectAPI.md ├── JestPlatform.md ├── ManualMocks.md ├── MigrationGuide.md ├── MockFunctionAPI.md ├── MockFunctions.md ├── MongoDB.md ├── MoreResources.md ├── Puppeteer.md ├── SetupAndTeardown.md ├── SnapshotTesting.md ├── TestingAsyncCode.md ├── TestingFrameworks.md ├── TimerMocks.md ├── Troubleshooting.md ├── TutorialAsync.md ├── TutorialReact.md ├── TutorialReactNative.md ├── TutorialjQuery.md ├── UpgradingToJest29.md ├── UpgradingToJest30.md ├── UsingMatchers.md ├── WatchPlugins.md ├── Webpack.md └── _TypeScriptExamplesNote.md ├── e2e ├── MockStdinWatchPlugin.js ├── Utils.ts ├── __tests__ │ ├── __snapshots__ │ │ ├── asyncAndCallback.test.ts.snap │ │ ├── beforeAllFiltered.ts.snap │ │ ├── beforeEachQueue.ts.snap │ │ ├── callDoneTwice.test.ts.snap │ │ ├── chaiAssertionLibrary.ts.snap │ │ ├── circusConcurrent.test.ts.snap │ │ ├── circusDeclarationErrors.test.ts.snap │ │ ├── cliHandlesExactFilenames.test.ts.snap │ │ ├── complexItemsInErrors.ts.snap │ │ ├── console.test.ts.snap │ │ ├── consoleAfterTeardown.test.ts.snap │ │ ├── consoleDebugging.test.ts.snap │ │ ├── consoleLogOutputWhenRunInBand.test.ts.snap │ │ ├── coverageHandlebars.test.ts.snap │ │ ├── coverageProviderV8.test.ts.snap │ │ ├── coverageRemapping.test.ts.snap │ │ ├── coverageReport.test.ts.snap │ │ ├── coverageThreshold.test.ts.snap │ │ ├── coverageTransformInstrumented.test.ts.snap │ │ ├── coverageWithoutTransform.test.ts.snap │ │ ├── customInlineSnapshotMatchers.test.ts.snap │ │ ├── customMatcherStackTrace.test.ts.snap │ │ ├── customReporters.test.ts.snap │ │ ├── customReportersOnCircus.test.ts.snap │ │ ├── declarationErrors.test.ts.snap │ │ ├── detectOpenHandles.ts.snap │ │ ├── domDiffing.test.ts.snap │ │ ├── each.test.ts.snap │ │ ├── emptyDescribeWithHooks.test.ts.snap │ │ ├── environmentAfterTeardown.test.ts.snap │ │ ├── environmentAfterTeardownJasmine.test.ts.snap │ │ ├── errorOnDeprecated.test.ts.snap │ │ ├── executeTestsOnceInMpr.ts.snap │ │ ├── expectAsyncMatcher.test.ts.snap │ │ ├── failures.test.ts.snap │ │ ├── findRelatedFiles.test.ts.snap │ │ ├── globals.test.ts.snap │ │ ├── injectGlobals.test.ts.snap │ │ ├── isolateModulesAsync.test.ts.snap │ │ ├── jest.config.js.test.ts.snap │ │ ├── jest.config.ts.test.ts.snap │ │ ├── listTests.test.ts.snap │ │ ├── moduleNameMapper.test.ts.snap │ │ ├── multiProjectRunner.test.ts.snap │ │ ├── multipleConfigs.ts.snap │ │ ├── nativeEsm.test.ts.snap │ │ ├── nestedTestDefinitions.test.ts.snap │ │ ├── nonSerializableStructuresInequality.test.ts.snap │ │ ├── processExit.test.ts.snap │ │ ├── promiseAsyncHandling.test.ts.snap │ │ ├── randomize.test.ts.snap │ │ ├── requireAfterTeardown.test.ts.snap │ │ ├── requireAfterTeardownJasmine.test.ts.snap │ │ ├── requireMissingExt.test.ts.snap │ │ ├── resolveAsync.test.ts.snap │ │ ├── resolveNoFileExtensions.test.ts.snap │ │ ├── runProgrammaticallyMultipleProjects.test.ts.snap │ │ ├── showConfig.test.ts.snap │ │ ├── snapshot.test.ts.snap │ │ ├── snapshotMockFs.test.ts.snap │ │ ├── snapshotSerializers.test.ts.snap │ │ ├── stackTrace.test.ts.snap │ │ ├── stackTraceSourceMapsWithCoverage.test.ts.snap │ │ ├── testEnvironmentRunScript.test.ts.snap │ │ ├── testFailing.test.ts.snap │ │ ├── testFailingJasmine.test.ts.snap │ │ ├── testFailingSnapshot.test.js.snap │ │ ├── testMatch.test.ts.snap │ │ ├── testMatchDefault.test.ts.snap │ │ ├── testMatchTs.test.ts.snap │ │ ├── testNamePattern.test.ts.snap │ │ ├── testNamePatternSkipped.test.ts.snap │ │ ├── testRetries.test.ts.snap │ │ ├── testTodo.test.ts.snap │ │ ├── timeouts.test.ts.snap │ │ ├── timeoutsLegacy.test.ts.snap │ │ ├── toMatchInlineSnapshot.test.ts.snap │ │ ├── toThrowErrorMatchingInlineSnapshot.test.ts.snap │ │ ├── toThrowErrorMatchingSnapshot.test.ts.snap │ │ ├── transform.test.ts.snap │ │ ├── typescriptCoverage.test.ts.snap │ │ ├── watchModeOnlyFailed.test.ts.snap │ │ ├── watchModePatterns.test.ts.snap │ │ ├── watchModeUpdateSnapshot.test.ts.snap │ │ ├── workerRestartBeforeSend.test.ts.snap │ │ ├── workerRestarting.test.ts.snap │ │ └── wrongEnv.test.ts.snap │ ├── asyncAndCallback.test.ts │ ├── asyncRegenerator.test.ts │ ├── autoClearMocks.test.ts │ ├── autoResetMocks.test.ts │ ├── autoRestoreMocks.test.ts │ ├── babelPluginJestHoist.test.ts │ ├── badSourceMap.test.ts │ ├── beforeAllFiltered.ts │ ├── beforeEachQueue.ts │ ├── browserResolve.ts │ ├── callDoneTwice.test.ts │ ├── chaiAssertionLibrary.ts │ ├── circularRefInBuiltInObj.test.ts │ ├── circusConcurrent.test.ts │ ├── circusConcurrentEach.test.ts │ ├── circusDeclarationErrors.test.ts │ ├── clearCache.test.ts │ ├── clearFSAndTransformCache.test.ts │ ├── cliHandlesExactFilenames.test.ts │ ├── compareDomNodes.test.ts │ ├── complexItemsInErrors.ts │ ├── config.test.ts │ ├── configOverride.test.ts │ ├── console.test.ts │ ├── consoleAfterTeardown.test.ts │ ├── consoleDebugging.test.ts │ ├── consoleLogOutputWhenRunInBand.test.ts │ ├── coverageHandlebars.test.ts │ ├── coverageProviderV8.test.ts │ ├── coverageRemapping.test.ts │ ├── coverageReport.test.ts │ ├── coverageThreshold.test.ts │ ├── coverageTransformInstrumented.test.ts │ ├── coverageWithoutTransform.test.ts │ ├── crawlSymlinks.test.ts │ ├── createProcessObject.test.ts │ ├── customEsmTestSequencers.test.ts │ ├── customHaste.test.ts │ ├── customInlineSnapshotMatchers.test.ts │ ├── customMatcherStackTrace.test.ts │ ├── customReporters.test.ts │ ├── customReportersOnCircus.test.ts │ ├── customResolver.test.ts │ ├── customTestSequencers.test.ts │ ├── debug.test.ts │ ├── declarationErrors.test.ts │ ├── dependencyClash.test.ts │ ├── detectOpenHandles.ts │ ├── domDiffing.test.ts │ ├── doneInHooks.test.ts │ ├── dynamicRequireDependencies.ts │ ├── each.test.ts │ ├── emptyDescribeWithHooks.test.ts │ ├── emptySuiteError.test.ts │ ├── env.test.ts │ ├── environmentAfterTeardown.test.ts │ ├── environmentAfterTeardownJasmine.test.ts │ ├── errorOnDeprecated.test.ts │ ├── esmConfigFile.test.ts │ ├── executeTestsOnceInMpr.ts │ ├── existentRoots.test.ts │ ├── expectAsyncMatcher.test.ts │ ├── expectInVm.test.ts │ ├── explicitResourceManagement.test.ts │ ├── failureDetailsProperty.test.ts │ ├── failures.test.ts │ ├── fakePromises.test.ts │ ├── fakeTimers.test.ts │ ├── fakeTimersLegacy.test.ts │ ├── fatalWorkerError.test.ts │ ├── filter.test.ts │ ├── findRelatedFiles.test.ts │ ├── focusedTests.test.ts │ ├── forceExit.test.ts │ ├── generatorMock.test.ts │ ├── global-mutation.test.ts │ ├── global.test.ts │ ├── globalSetup.test.ts │ ├── globalTeardown.test.ts │ ├── globals.test.ts │ ├── hasteMapMockChanged.test.ts │ ├── hasteMapSha1.test.ts │ ├── hasteMapSize.test.ts │ ├── importedGlobals.test.ts │ ├── injectGlobals.test.ts │ ├── isolateModules.test.ts │ ├── isolateModulesAsync.test.ts │ ├── iterator-to-null-test.ts │ ├── jasmineAsync.test.ts │ ├── jasmineAsyncWithPendingDuringTest.ts │ ├── jest.config.js.test.ts │ ├── jest.config.ts.test.ts │ ├── jestChangedFiles.test.ts │ ├── jestEnvironmentJsdom.test.ts │ ├── jestObject.test.ts │ ├── jestRequireActual.test.ts │ ├── jestRequireMock.test.ts │ ├── json.test.ts │ ├── jsonReporter.test.ts │ ├── lifecycles.ts │ ├── listTests.test.ts │ ├── locationInResults.test.ts │ ├── logHeapUsage.test.ts │ ├── mockFunctions.test.ts │ ├── mockNames.test.ts │ ├── moduleNameMapper.test.ts │ ├── moduleParentNullInTest.ts │ ├── multiProjectRunner.test.ts │ ├── multipleConfigs.ts │ ├── nativeAsyncMock.test.ts │ ├── nativeEsm.test.ts │ ├── nativeEsmTypescript.test.ts │ ├── nestedEventLoop.test.ts │ ├── nestedTestDefinitions.test.ts │ ├── noTestFound.test.ts │ ├── noTestsFound.test.ts │ ├── nodePath.test.ts │ ├── nodeURLManualMocks.test.js │ ├── nonSerializableStructuresInequality.test.ts │ ├── onlyChanged.test.ts │ ├── onlyFailuresNonWatch.test.ts │ ├── overrideGlobals.test.ts │ ├── pnp.test.ts │ ├── presets.test.ts │ ├── processExit.test.ts │ ├── promiseAsyncHandling.test.ts │ ├── promiseReject.test.ts │ ├── randomize.test.ts │ ├── readInitialOptions.test.ts │ ├── regexCharInPath.test.ts │ ├── requireAfterTeardown.test.ts │ ├── requireAfterTeardownJasmine.test.ts │ ├── requireMain.test.ts │ ├── requireMainAfterCreateRequire.test.ts │ ├── requireMainIsolateModules.test.ts │ ├── requireMainResetModules.test.ts │ ├── requireMissingExt.test.ts │ ├── requireV8Module.test.ts │ ├── resetModules.test.ts │ ├── resolve.test.ts │ ├── resolveAsync.test.ts │ ├── resolveConditions.test.ts │ ├── resolveGetPaths.test.ts │ ├── resolveNoFileExtensions.test.ts │ ├── resolveNodeModule.test.ts │ ├── resolveWithPaths.test.ts │ ├── retainAllFiles.test.ts │ ├── runProgrammatically.test.ts │ ├── runProgrammaticallyMultipleProjects.test.ts │ ├── runTestsByPath.test.ts │ ├── runtimeInternalModuleRegistry.test.ts │ ├── sandboxInjectedGlobals.test.ts │ ├── selectProjects.test.ts │ ├── setupFiles.test.ts │ ├── setupFilesAfterEnvConfig.test.ts │ ├── shard.test.ts │ ├── showConfig.test.ts │ ├── showSeed.test.ts │ ├── skipBeforeAfterAll.test.ts │ ├── snapshot-concurrent.test.ts │ ├── snapshot-unknown.test.ts │ ├── snapshot.test.ts │ ├── snapshotMockFs.test.ts │ ├── snapshotResolver.test.ts │ ├── snapshotSerializers.test.ts │ ├── stackTrace.test.ts │ ├── stackTraceNoCaptureStackTrace.test.ts │ ├── stackTraceSourceMaps.test.ts │ ├── stackTraceSourceMapsWithCoverage.test.ts │ ├── summaryThreshold.test.ts │ ├── supportsDashedArgs.ts │ ├── symbol.test.ts │ ├── testEnvironment.test.ts │ ├── testEnvironmentAsync.test.ts │ ├── testEnvironmentCircus.test.ts │ ├── testEnvironmentCircusAsync.test.ts │ ├── testEnvironmentEsm.ts │ ├── testEnvironmentRunScript.test.ts │ ├── testFailing.test.ts │ ├── testFailingJasmine.test.ts │ ├── testFailingSnapshot.test.js │ ├── testFailureExitCode.test.ts │ ├── testInRoot.test.ts │ ├── testMatch.test.ts │ ├── testMatchDefault.test.ts │ ├── testMatchTs.test.ts │ ├── testNamePattern.test.ts │ ├── testNamePatternSkipped.test.ts │ ├── testPathPatternReporterMessage.test.ts │ ├── testPathPatternsSubprojects.test.ts │ ├── testResultsProcessor.test.ts │ ├── testRetries.test.ts │ ├── testTodo.test.ts │ ├── timeouts.test.ts │ ├── timeoutsLegacy.test.ts │ ├── toMatchInlineSnapshot.test.ts │ ├── toMatchInlineSnapshotWithJSX.test.ts │ ├── toMatchInlineSnapshotWithPretttier3.test.ts │ ├── toMatchInlineSnapshotWithRetries.test.ts │ ├── toMatchSnapshot.test.ts │ ├── toMatchSnapshotWithRetries.test.ts │ ├── toMatchSnapshotWithStringSerializer.test.ts │ ├── toThrowErrorMatchingInlineSnapshot.test.ts │ ├── toThrowErrorMatchingSnapshot.test.ts │ ├── transform.test.ts │ ├── transformLinkedModules.test.ts │ ├── tsIntegration.test.ts │ ├── typescriptConfigFile.test.ts │ ├── typescriptCoverage.test.ts │ ├── unexpectedToken.test.ts │ ├── useStderr.test.ts │ ├── verbose.test.ts │ ├── version.test.ts │ ├── watch-plugins.test.ts │ ├── watchModeNoAccess.test.ts │ ├── watchModeOnlyFailed.test.ts │ ├── watchModePatterns.test.ts │ ├── watchModeUpdateSnapshot.test.ts │ ├── workerForceExit.test.ts │ ├── workerRestartBeforeSend.test.ts │ ├── workerRestarting.test.ts │ └── wrongEnv.test.ts ├── async-regenerator │ ├── __tests__ │ │ └── test.js │ ├── babel.config.js │ ├── package.json │ └── yarn.lock ├── auto-clear-mocks │ ├── with-auto-clear │ │ ├── __tests__ │ │ │ └── index.js │ │ ├── index.js │ │ └── package.json │ └── without-auto-clear │ │ ├── __tests__ │ │ └── index.js │ │ ├── index.js │ │ └── package.json ├── auto-reset-mocks │ ├── with-auto-reset │ │ ├── __tests__ │ │ │ └── index.js │ │ ├── index.js │ │ └── package.json │ └── without-auto-reset │ │ ├── __tests__ │ │ └── index.js │ │ ├── index.js │ │ └── package.json ├── auto-restore-mocks │ ├── with-auto-restore │ │ ├── __tests__ │ │ │ └── index.js │ │ ├── index.js │ │ └── package.json │ └── without-auto-restore │ │ ├── __tests__ │ │ └── index.js │ │ ├── index.js │ │ └── package.json ├── babel-plugin-jest-hoist │ ├── __test_modules__ │ │ ├── Mocked.js │ │ ├── Unmocked.js │ │ ├── __mocks__ │ │ │ └── jestBackticks.js │ │ ├── a.js │ │ ├── b.js │ │ ├── c.js │ │ ├── d.js │ │ ├── e.js │ │ ├── f.js │ │ ├── g.js │ │ └── jestBackticks.js │ ├── __tests__ │ │ ├── importJest.test.js │ │ ├── integration.test.js │ │ ├── integrationAutomockOff.test.js │ │ └── typescript.test.ts │ ├── babel.config.js │ ├── banana.js │ ├── entry.ts │ ├── mockFile.js │ ├── package.json │ ├── types.ts │ └── yarn.lock ├── bad-source-map │ ├── __tests__ │ │ ├── badSourceMap.js │ │ └── badSourceMap.js.map │ └── package.json ├── before-all-filtered │ ├── __tests__ │ │ └── beforeAllFiltered.test.js │ └── package.json ├── before-all-skipped │ ├── __tests__ │ │ └── beforeAllFiltered.test.js │ └── package.json ├── before-each-queue │ ├── __tests__ │ │ └── beforeEachQueue.test.js │ └── package.json ├── browser-resolver │ ├── __tests__ │ │ └── test.js │ ├── fake-pkg │ │ ├── main.js │ │ └── package.json │ ├── package.json │ ├── resolver.js │ └── yarn.lock ├── call-done-twice │ ├── __tests__ │ │ └── index.test.js │ └── package.json ├── chai-assertion-library-errors │ ├── __tests__ │ │ └── chai_assertion.js │ ├── package.json │ └── yarn.lock ├── circus-concurrent │ ├── __tests__ │ │ ├── concurrent-each.test.js │ │ ├── concurrent-mixed.test.js │ │ ├── concurrent-only-each.test.js │ │ ├── concurrent-only.test.js │ │ ├── concurrent-skip.test.js │ │ └── concurrent.test.js │ └── package.json ├── circus-declaration-errors │ ├── __tests__ │ │ └── asyncDefinition.test.js │ └── package.json ├── clear-cache │ ├── __tests__ │ │ └── clearCache.test.js │ └── package.json ├── compare-dom-nodes │ ├── __tests__ │ │ └── failedAssertion.js │ └── package.json ├── config-override │ ├── __tests__ │ │ └── test.js │ ├── different-config.json │ ├── jest.config.json │ └── package.json ├── console-after-teardown │ ├── __tests__ │ │ └── console.test.js │ └── package.json ├── console-debugging │ ├── __tests__ │ │ └── console-debugging.test.js │ ├── jest.config.js │ ├── package.json │ └── stdout-spy.js ├── console-jsdom │ ├── __tests__ │ │ └── console.test.js │ └── package.json ├── console-winston │ ├── __tests__ │ │ └── console.test.js │ ├── package.json │ └── yarn.lock ├── console │ ├── __tests__ │ │ └── console.test.js │ └── package.json ├── coverage-handlebars │ ├── __tests__ │ │ └── greet.js │ ├── greet.hbs │ ├── package.json │ ├── transform-handlebars.js │ └── yarn.lock ├── coverage-provider-v8 │ ├── cjs-native-without-sourcemap │ │ ├── __tests__ │ │ │ └── test.js │ │ ├── module.js │ │ ├── package.json │ │ └── uncovered.js │ ├── cjs-with-babel-transformer │ │ ├── __tests__ │ │ │ └── test.ts │ │ ├── babel.config.js │ │ ├── module.ts │ │ ├── package.json │ │ ├── types.ts │ │ └── uncovered.ts │ ├── empty-sourcemap │ │ ├── __tests__ │ │ │ └── test.ts │ │ ├── babel.config.js │ │ ├── package.json │ │ └── types.ts │ ├── esm-native-without-sourcemap │ │ ├── __tests__ │ │ │ └── test.js │ │ ├── module.js │ │ ├── package.json │ │ └── uncovered.js │ ├── esm-with-custom-transformer │ │ ├── __tests__ │ │ │ └── test.ts │ │ ├── module.ts │ │ ├── package.json │ │ ├── types.ts │ │ ├── typescriptPreprocessor.js │ │ └── uncovered.ts │ ├── no-sourcemap │ │ ├── Thing.js │ │ ├── __tests__ │ │ │ └── Thing.test.js │ │ ├── cssTransform.js │ │ ├── package.json │ │ └── x.css │ └── with-resetModules │ │ ├── __tests__ │ │ └── test.js │ │ ├── module.js │ │ ├── package.json │ │ └── uncovered.js ├── coverage-remapping │ ├── __tests__ │ │ └── coveredTest.ts │ ├── covered.ts │ ├── package.json │ ├── typescriptPreprocessor.js │ └── yarn.lock ├── coverage-report │ ├── .gitignore │ ├── __mocks__ │ │ └── sumDependency.js │ ├── __tests__ │ │ └── sum.test.js │ ├── babel.config.js │ ├── cached-duplicates │ │ ├── a │ │ │ ├── __tests__ │ │ │ │ └── identical.test.js │ │ │ └── identical.js │ │ └── b │ │ │ ├── __tests__ │ │ │ └── identical.test.js │ │ │ └── identical.js │ ├── file.js │ ├── notRequiredInTestSuite.js │ ├── otherFile.js │ ├── package.json │ ├── setup.js │ ├── sum.js │ ├── sumDependency.js │ └── yarn.lock ├── coverage-transform-instrumented │ ├── __tests__ │ │ └── coveredTest.js │ ├── covered.js │ ├── package.json │ ├── preprocessor.js │ └── yarn.lock ├── coverage-without-transform │ ├── __tests__ │ │ └── test.js │ ├── package.json │ └── some-random-file.js ├── create-process-object │ ├── __tests__ │ │ └── createProcessObject.test.js │ ├── package.json │ └── setup.js ├── custom-esm-test-sequencer │ ├── a.test.js │ ├── b.test.js │ ├── c.test.js │ ├── d.test.js │ ├── e.test.js │ ├── package.json │ └── testSequencer.mjs ├── custom-haste-map │ ├── __tests__ │ │ ├── hasteExample.test.js │ │ └── hasteExampleHelper.js │ ├── hasteMap.js │ └── package.json ├── custom-inline-snapshot-matchers │ ├── __tests__ │ │ ├── asynchronous.test.js │ │ └── bail.test.js │ └── package.json ├── custom-jsdom-html │ ├── __tests__ │ │ └── test.js │ ├── babel.config.js │ └── package.json ├── custom-matcher-stack-trace │ ├── __tests__ │ │ ├── asynchronous.test.js │ │ └── sync.test.js │ └── package.json ├── custom-reporters │ ├── __tests__ │ │ ├── add.test.js │ │ ├── addFail.test.js │ │ ├── just2Tests.test.js │ │ ├── skip.test.js │ │ └── todo.test.js │ ├── add.js │ ├── package.json │ └── reporters │ │ ├── AssertionCountsReporter.js │ │ ├── DefaultExportReporter.js │ │ ├── IncompleteReporter.js │ │ ├── TestCaseStartReporter.js │ │ └── TestReporter.js ├── custom-resolver │ ├── __mocks__ │ │ └── manualMock.js │ ├── __tests__ │ │ └── customResolver.test.js │ ├── bar.js │ ├── foo.js │ ├── manualMock.js │ ├── package.json │ └── resolver.js ├── custom-test-sequencer │ ├── a.test.js │ ├── b.test.js │ ├── c.test.js │ ├── d.test.js │ ├── e.test.js │ ├── package.json │ ├── testSequencer.js │ ├── testSequencerAsync.js │ └── testSequencerWithSeed.js ├── declaration-errors │ ├── __tests__ │ │ ├── describeReturnPromise.test.js │ │ ├── describeReturnSomething.test.js │ │ └── describeThrow.test.js │ └── package.json ├── detect-open-handles │ ├── __tests__ │ │ ├── child_process.js │ │ ├── crypto.js │ │ ├── histogram.js │ │ ├── in-done-function.js │ │ ├── in-done-lifecycle.js │ │ ├── inside.js │ │ ├── notify.js │ │ ├── outside.js │ │ ├── promise.js │ │ ├── recently-closed.js │ │ ├── unref.js │ │ └── worker.js │ ├── babel.config.js │ ├── interval-code.js │ ├── package.json │ └── server.js ├── dom-diffing │ ├── __tests__ │ │ └── dom.test.js │ └── package.json ├── done-in-hooks │ ├── __tests__ │ │ └── index.test.js │ └── package.json ├── dynamic-require-dependencies │ ├── __tests__ │ │ └── dynamicRequire.test.js │ ├── dynamicRequire.js │ ├── package.json │ └── source.js ├── each │ ├── __tests__ │ │ ├── describeOnly.test.js │ │ ├── eachException.test.js │ │ ├── eachOnly.test.js │ │ ├── eachSkip.test.js │ │ ├── eachTemplate.test.js │ │ ├── failure.test.js │ │ ├── pretty.test.js │ │ └── success.test.js │ └── package.json ├── empty-describe-with-hooks │ ├── __tests__ │ │ ├── hookInDescribeWithSkippedTest.test.js │ │ ├── hookInEmptyDescribe.test.js │ │ ├── hookInEmptyNestedDescribe.test.js │ │ └── multipleHooksInEmptyDescribe.test.js │ └── package.json ├── empty-suite-error │ ├── __tests__ │ │ └── emptySuite.test.js │ └── package.json ├── env-test │ ├── __tests__ │ │ ├── env.test.js │ │ └── equivalent.test.js │ └── package.json ├── environment-after-teardown │ ├── __tests__ │ │ └── afterTeardown.test.js │ └── package.json ├── environmentOptions │ ├── __tests__ │ │ └── environmentOptions.test.js │ └── package.json ├── error-on-deprecated │ ├── __tests__ │ │ ├── defaultTimeoutInterval.test.js │ │ ├── fail.test.js │ │ ├── jasmine.addMatchers.test.js │ │ ├── jasmine.any.test.js │ │ ├── jasmine.anything.test.js │ │ ├── jasmine.arrayContaining.test.js │ │ ├── jasmine.createSpy.test.js │ │ ├── jasmine.objectContaining.test.js │ │ ├── jasmine.stringMatching.test.js │ │ ├── pending.test.js │ │ ├── spyOn.test.js │ │ └── spyOnProperty.test.js │ └── package.json ├── esm-config │ ├── cjs │ │ ├── __tests__ │ │ │ └── test.js │ │ ├── jest.config.cjs │ │ └── package.json │ ├── js │ │ ├── __tests__ │ │ │ └── test.js │ │ ├── jest.config.js │ │ └── package.json │ ├── mjs │ │ ├── __tests__ │ │ │ └── test.js │ │ ├── jest.config.mjs │ │ └── package.json │ └── ts │ │ ├── __tests__ │ │ └── test.js │ │ ├── jest.config.ts │ │ └── package.json ├── expect-async-matcher │ ├── __tests__ │ │ ├── failure.test.js │ │ └── success.test.js │ ├── babel.config.js │ ├── matchers.js │ ├── package.json │ └── yarn.lock ├── expect-in-vm │ ├── __tests__ │ │ └── expect-in-vm.test.js │ └── package.json ├── explicit-resource-management │ ├── __tests__ │ │ └── index.js │ ├── babel.config.js │ ├── index.js │ ├── package.json │ └── yarn.lock ├── failureDetails-property │ ├── __tests__ │ │ └── tests.test.js │ ├── myreporter.js │ └── package.json ├── failures │ ├── __tests__ │ │ ├── __snapshots__ │ │ │ ├── snapshot.test.js.snap │ │ │ └── snapshotWithHint.test.js.snap │ │ ├── assertionCount.test.js │ │ ├── assertionError.test.js │ │ ├── asyncFailures.test.js │ │ ├── duringTests.test.js │ │ ├── errorAfterTestComplete.test.js │ │ ├── errorWithCause.test.js │ │ ├── errorWithCauseInDescribe.test.js │ │ ├── snapshot.test.js │ │ ├── snapshotWithHint.test.js │ │ ├── testMacro.test.js │ │ ├── throwNumber.test.js │ │ ├── throwObject.test.js │ │ ├── throwObjectWithStackProp.test.js │ │ └── throwString.test.js │ ├── babel.config.js │ ├── macros.js │ ├── package.json │ └── yarn.lock ├── fake-promises │ ├── asap │ │ ├── __tests__ │ │ │ └── generator.test.js │ │ ├── fake-promises.js │ │ └── package.json │ └── immediate │ │ ├── __tests__ │ │ └── generator.test.js │ │ ├── fake-promises.js │ │ └── package.json ├── fake-timers-legacy │ ├── enable-globally │ │ ├── __tests__ │ │ │ └── enableGlobally.test.js │ │ └── package.json │ ├── enable-legacy-fake-timers │ │ ├── __tests__ │ │ │ └── legacyFakeTimers.test.js │ │ └── package.json │ ├── request-animation-frame │ │ ├── __tests__ │ │ │ └── requestAnimationFrame.test.js │ │ └── package.json │ ├── reset-all-mocks │ │ ├── __tests__ │ │ │ └── resetAllMocks.test.js │ │ └── package.json │ ├── reset-mocks │ │ ├── __tests__ │ │ │ └── resetMocks.test.js │ │ └── package.json │ ├── set-immediate │ │ ├── __tests__ │ │ │ └── setImmediate.test.js │ │ └── package.json │ ├── use-fake-timers │ │ ├── __tests__ │ │ │ └── useFakeTimers.test.js │ │ └── package.json │ ├── use-legacy-fake-timers │ │ ├── __tests__ │ │ │ └── useFakeTimers.test.js │ │ └── package.json │ └── use-real-timers │ │ ├── __tests__ │ │ └── useRealTimers.test.js │ │ └── package.json ├── fake-timers │ ├── advance-timers │ │ ├── __tests__ │ │ │ └── advanceTimers.test.js │ │ └── package.json │ ├── clear-real-timers │ │ ├── __tests__ │ │ │ └── clearRealTimers.test.js │ │ └── package.json │ ├── do-not-fake │ │ ├── __tests__ │ │ │ └── doNotFake.test.js │ │ └── package.json │ ├── enable-globally │ │ ├── __tests__ │ │ │ └── enableGlobally.test.js │ │ └── package.json │ ├── request-animation-frame │ │ ├── __tests__ │ │ │ └── requestAnimationFrame.test.js │ │ └── package.json │ ├── set-immediate │ │ ├── __tests__ │ │ │ └── setImmediate.test.js │ │ └── package.json │ ├── timer-limit │ │ ├── __tests__ │ │ │ └── timerLimit.test.js │ │ └── package.json │ ├── use-fake-timers │ │ ├── __tests__ │ │ │ └── useFakeTimers.test.js │ │ └── package.json │ └── use-real-timers │ │ ├── __tests__ │ │ └── useRealTimers.test.js │ │ └── package.json ├── filter │ ├── __tests__ │ │ ├── bar.test.js │ │ └── foo.test.js │ ├── my-broken-filter.js │ ├── my-broken-setup-filter.js │ ├── my-clowny-filter.js │ ├── my-filter.js │ ├── my-secondary-filter.js │ ├── my-setup-filter.js │ └── package.json ├── focused-tests │ ├── __tests__ │ │ └── tests.js │ └── package.json ├── generator-mock │ ├── __tests__ │ │ └── generatorMock.test.js │ ├── index.js │ └── package.json ├── global-setup-custom-transform │ ├── __tests__ │ │ └── test.js │ ├── index.js │ ├── package.json │ ├── setup.js │ └── transformer.js ├── global-setup-esm │ ├── __tests__ │ │ └── test.js │ ├── index.js │ ├── package.json │ └── setup.js ├── global-setup-node-modules │ ├── .gitignore │ ├── __tests__ │ │ └── test.js │ ├── babel.config.js │ ├── node_modules │ │ └── example │ │ │ └── index.js │ ├── package.json │ └── setup.js ├── global-setup │ ├── __tests__ │ │ ├── setup1.test.js │ │ ├── setup2.test.js │ │ └── setup3.test.js │ ├── babel.config.js │ ├── custom-tests-dir │ │ └── pass.test.js │ ├── invalidSetup.js │ ├── invalidSetupWithNamedExport.js │ ├── package.json │ ├── project-1 │ │ ├── setup.js │ │ └── setup1.test.js │ ├── project-2 │ │ ├── setup.js │ │ └── setup2.test.js │ ├── projects.jest.config.js │ ├── setup.js │ ├── setupWithConfig.js │ ├── setupWithDefaultExport.js │ └── yarn.lock ├── global-teardown-esm │ ├── __tests__ │ │ └── test.js │ ├── index.js │ ├── package.json │ └── teardown.js ├── global-teardown │ ├── __tests__ │ │ ├── teardown1.test.js │ │ ├── teardown2.test.js │ │ └── teardown3.test.js │ ├── babel.config.js │ ├── custom-tests-dir │ │ └── pass.test.js │ ├── invalidTeardown.js │ ├── invalidTeardownWithNamedExport.js │ ├── package.json │ ├── project-1 │ │ ├── teardown.js │ │ └── teardown1.test.js │ ├── project-2 │ │ ├── teardown.js │ │ └── teardown2.test.js │ ├── projects.jest.config.js │ ├── teardown.js │ ├── teardownWithConfig.js │ ├── teardownWithDefaultExport.js │ └── yarn.lock ├── imported-globals │ ├── __tests__ │ │ └── env.test.js │ ├── babel.config.js │ └── package.json ├── isolate-modules-async │ ├── __tests__ │ │ └── main.js │ ├── main.js │ └── package.json ├── jasmine-async │ ├── __tests__ │ │ ├── asyncTestFails.test.js │ │ ├── concurrent-each.test.js │ │ ├── concurrent-many.test.js │ │ ├── concurrent-only-each.test.js │ │ ├── concurrent-parallel-failure.test.js │ │ ├── concurrent.test.js │ │ ├── concurrentWithinDescribe.test.js │ │ ├── generator.test.js │ │ ├── pendingInPromise.test.js │ │ ├── promiseAfterAll.test.js │ │ ├── promiseAfterEach.test.js │ │ ├── promiseBeforeAll.test.js │ │ ├── promiseBeforeEach.test.js │ │ ├── promiseFit.test.js │ │ ├── promiseIt.test.js │ │ ├── promiseXit.test.js │ │ └── returningValues.test.js │ └── package.json ├── jest-object │ ├── __tests__ │ │ ├── any-seed.test.js │ │ └── get-seed.test.js │ ├── package.json │ ├── randomize-config.json │ └── showSeed-config.json ├── json-reporter │ ├── __tests__ │ │ └── sum.test.js │ ├── package.json │ └── sum.js ├── lifecycles │ ├── __tests__ │ │ └── index.js │ ├── index.js │ └── package.json ├── list-tests │ ├── __tests__ │ │ ├── dummy.test.js │ │ └── other.test.js │ └── package.json ├── location-in-results │ ├── __tests__ │ │ └── test.js │ └── package.json ├── mock-functions │ ├── __tests__ │ │ └── index.js │ └── package.json ├── mock-json │ ├── __mocks__ │ │ └── data.json │ ├── __tests__ │ │ └── index.js │ ├── data.json │ ├── index.js │ └── package.json ├── mock-names │ ├── with-empty-mock-name-not-called │ │ ├── __tests__ │ │ │ └── index.js │ │ ├── index.js │ │ └── package.json │ ├── with-empty-mock-name │ │ ├── __tests__ │ │ │ └── index.js │ │ ├── index.js │ │ └── package.json │ ├── with-mock-name-call-times-fail │ │ ├── __tests__ │ │ │ └── index.js │ │ ├── index.js │ │ └── package.json │ ├── with-mock-name-call-times-pass │ │ ├── __tests__ │ │ │ └── index.js │ │ ├── index.js │ │ └── package.json │ ├── with-mock-name-not-called-fail │ │ ├── __tests__ │ │ │ └── index.js │ │ ├── index.js │ │ └── package.json │ ├── with-mock-name-not-called-pass │ │ ├── __tests__ │ │ │ └── index.js │ │ ├── index.js │ │ └── package.json │ ├── with-mock-name-not-called │ │ ├── __tests__ │ │ │ └── index.js │ │ ├── index.js │ │ └── package.json │ ├── with-mock-name │ │ ├── __tests__ │ │ │ └── index.js │ │ ├── index.js │ │ └── package.json │ ├── without-mock-name-not-called │ │ ├── __tests__ │ │ │ └── index.js │ │ ├── index.js │ │ └── package.json │ └── without-mock-name │ │ ├── __tests__ │ │ └── index.js │ │ ├── index.js │ │ └── package.json ├── module-name-mapper-correct-config │ ├── __mocks__ │ │ └── styleMock.js │ ├── __tests__ │ │ └── index.js │ ├── index.js │ ├── package.json │ ├── style.css │ └── style.sass ├── module-name-mapper-correct-mock-absolute-path │ ├── __tests__ │ │ └── index.js │ ├── index.js │ ├── package.json │ └── src │ │ └── components │ │ └── Button.js ├── module-name-mapper-mock │ ├── __tests__ │ │ └── storage │ │ │ └── track │ │ │ ├── Track.test.js │ │ │ └── TrackExpected.test.js │ ├── package.json │ └── src │ │ └── storage │ │ └── track │ │ └── Track.js ├── module-name-mapper-wrong-array-config │ ├── __tests__ │ │ └── index.js │ ├── index.js │ ├── package.json │ └── style.css ├── module-name-mapper-wrong-config │ ├── __tests__ │ │ └── index.js │ ├── index.js │ ├── package.json │ └── style.css ├── module-parent-null-in-test │ ├── __tests__ │ │ └── index.js │ └── package.json ├── multi-project-babel │ ├── package.json │ ├── prj-1 │ │ ├── babel.config.js │ │ ├── index.js │ │ ├── index.test.js │ │ └── package.json │ ├── prj-2 │ │ ├── .babelrc.js │ │ ├── index.js │ │ ├── index.test.js │ │ └── package.json │ ├── prj-3 │ │ ├── package.json │ │ └── src │ │ │ ├── babel.config.js │ │ │ ├── index.js │ │ │ └── index.test.js │ ├── prj-4 │ │ ├── .babelrc.js │ │ ├── package.json │ │ └── src │ │ │ ├── index.js │ │ │ └── index.test.js │ └── prj-5 │ │ ├── .babelrc.js │ │ ├── package.json │ │ └── src │ │ ├── index.js │ │ └── index.test.js ├── multi-project-config-root │ ├── bar │ │ └── __tests__ │ │ │ └── boggusBar.test.js │ ├── foo │ │ └── __tests__ │ │ │ └── boggusFoo.test.js │ └── package.json ├── multi-project-multiple-configs │ ├── prj-1 │ │ ├── __tests__ │ │ │ └── test.js │ │ └── jest.config.ts │ └── prj-2 │ │ ├── __tests__ │ │ └── test.js │ │ └── jest.config.ts ├── multiple-configs │ ├── __tests__ │ │ └── test.js │ ├── jest.config.js │ ├── jest.config.json │ └── package.json ├── native-async-mock │ ├── Native.js │ ├── __tests__ │ │ └── nativeAsyncMock.test.js │ └── package.json ├── native-esm-typescript │ ├── __tests__ │ │ └── double.test.ts │ ├── babel.config.js │ ├── double.ts │ └── package.json ├── native-esm │ ├── __tests__ │ │ ├── native-esm-core-cjs-reexport.test.js │ │ ├── native-esm-deep-cjs-reexport.test.js │ │ ├── native-esm-import-assertions.test.js │ │ ├── native-esm-missing-import-assertions.test.js │ │ ├── native-esm-mocks.test.js │ │ ├── native-esm-native-module.test.js │ │ ├── native-esm-tla.test.js │ │ ├── native-esm-wasm.test.js │ │ └── native-esm.test.js │ ├── add.wasm │ ├── anotherDynamicImport.js │ ├── circularDependentA.mjs │ ├── circularDependentB.mjs │ ├── commonjs.cjs │ ├── commonjsNamed.cjs │ ├── coreReexport.js │ ├── deepReexport.js │ ├── dynamicImport.js │ ├── fromCjs.mjs │ ├── fromEsm.cjs │ ├── index.js │ ├── namedExport.cjs │ ├── namespaceExport.js │ ├── package.json │ ├── reexport.js │ ├── stateful.cjs │ ├── stateful.mjs │ ├── staticDataImport.js │ ├── wasm-bindgen │ │ ├── index.js │ │ ├── index_bg.js │ │ └── index_bg.wasm │ └── yarn.lock ├── nested-event-loop │ ├── __tests__ │ │ └── nestedEventLoop.test.js │ └── package.json ├── nested-test-definitions │ ├── __tests__ │ │ ├── nestedDescribeInTest.js │ │ ├── nestedHookInTest.js │ │ ├── nestedTestOutsideDescribe.js │ │ └── nestedTestWithinDescribe.js │ ├── index.js │ └── package.json ├── no-tests-found-test │ └── package.json ├── node-path │ ├── __tests__ │ │ └── nodePath.test.js │ ├── package.json │ └── src │ │ └── path │ │ └── file.js ├── node-url-manual-mocks │ ├── __mocks__ │ │ └── fs.js │ ├── __tests__ │ │ ├── importAndMock.test.js │ │ ├── importOnly.test.js │ │ └── mockOnly.test.js │ ├── package.json │ └── testUtils.js ├── override-globals │ ├── __tests__ │ │ └── index.js │ ├── babel.config.js │ ├── index.js │ ├── package.json │ └── setup.js ├── package.json ├── pnp │ ├── .yarnrc.yml │ ├── __tests__ │ │ ├── index.js │ │ └── undeclared-dependency.test.js │ ├── lib │ │ ├── index.js │ │ └── package.json │ ├── package.json │ ├── undeclared-dependency │ │ ├── index.js │ │ └── package.json │ └── yarn.lock ├── presets │ ├── cjs │ │ ├── __tests__ │ │ │ └── index.js │ │ ├── node_modules │ │ │ └── jest-preset-cjs │ │ │ │ ├── jest-preset.cjs │ │ │ │ └── mapper.js │ │ └── package.json │ ├── js-type-module │ │ ├── __tests__ │ │ │ └── index.js │ │ ├── node_modules │ │ │ └── jest-preset-js-type-module │ │ │ │ ├── jest-preset.js │ │ │ │ ├── mapper.js │ │ │ │ └── package.json │ │ └── package.json │ ├── js │ │ ├── __tests__ │ │ │ └── index.js │ │ ├── node_modules │ │ │ └── jest-preset-js │ │ │ │ ├── jest-preset.js │ │ │ │ └── mapper.js │ │ └── package.json │ ├── json │ │ ├── __tests__ │ │ │ └── index.js │ │ ├── node_modules │ │ │ └── jest-preset-json │ │ │ │ ├── jest-preset.json │ │ │ │ └── mapper.js │ │ └── package.json │ └── mjs │ │ ├── __tests__ │ │ └── index.js │ │ ├── node_modules │ │ └── jest-preset-mjs │ │ │ ├── jest-preset.mjs │ │ │ └── mapper.js │ │ └── package.json ├── process-exit │ ├── __tests__ │ │ └── test.js │ ├── babel.config.js │ └── package.json ├── promise-and-callback │ ├── __tests__ │ │ └── promise-and-callback.test.js │ └── package.json ├── promise-async-handling │ ├── __tests__ │ │ ├── rejectionHandled.test.js │ │ ├── unhandledRejectionAfterAll.test.js │ │ ├── unhandledRejectionAfterEach.test.js │ │ ├── unhandledRejectionBeforeAll.test.js │ │ ├── unhandledRejectionBeforeEach.test.js │ │ └── unhandledRejectionTest.test.js │ └── package.json ├── promise-reject │ └── package.json ├── randomize │ ├── __tests__ │ │ ├── __snapshots__ │ │ │ └── snapshots.test.js.snap │ │ ├── each.test.js │ │ ├── hooks.test.js │ │ ├── snapshots.test.js │ │ └── success.test.js │ ├── different-config.json │ └── package.json ├── read-initial-options │ ├── async-config │ │ └── jest.config.js │ ├── js-config │ │ └── jest.config.js │ ├── json-config │ │ └── jest.config.json │ ├── mjs-config │ │ └── jest.config.mjs │ ├── multiple-config-files │ │ ├── jest.config.js │ │ └── jest.config.json │ ├── pkg-config │ │ └── package.json │ ├── readOptions.js │ ├── ts-esbuild-register-config │ │ └── jest.config.ts │ ├── ts-loader-config │ │ └── jest.config.ts │ └── ts-node-config │ │ └── jest.config.ts ├── regex-(char-in-path │ ├── __tests__ │ │ └── regexCharInPath.test.js │ └── package.json ├── require-after-teardown │ ├── __tests__ │ │ └── lateRequire.test.js │ ├── index.js │ └── package.json ├── require-main-after-create-require │ ├── __tests__ │ │ └── parent.test.js │ ├── child.js │ ├── empty.js │ └── package.json ├── require-main-isolate-modules │ ├── __tests__ │ │ └── index.test.js │ ├── child.js │ ├── index.js │ └── package.json ├── require-main-reset-modules │ ├── __tests__ │ │ ├── resetModulesCallDirectly.test.js │ │ ├── resetModulesCallIndirectly.test.js │ │ ├── resetModulesFlagDirectly.test.js │ │ └── resetModulesFlagIndirectly.test.js │ ├── direct.js │ ├── indirect.js │ └── package.json ├── require-main │ ├── __tests__ │ │ └── loader.test.js │ ├── babel.config.js │ ├── example.js │ ├── loader.js │ └── package.json ├── require-missing-ext │ ├── __tests__ │ │ └── test.js │ ├── package.json │ └── yarn.lock ├── reset-modules │ ├── __tests__ │ │ └── resetModules.test.js │ └── package.json ├── resolve-async │ ├── __tests__ │ │ └── resolveAsync.test.js │ ├── package.json │ ├── resolver.cjs │ └── some-other-file.js ├── resolve-conditions │ ├── .gitignore │ ├── __tests__ │ │ ├── browser.test.mjs │ │ ├── custom-env-conditions-method-override.test.mjs │ │ ├── custom-env-override-export-conditions.test.mjs │ │ ├── custom-env.test.mjs │ │ ├── jsdom-custom-export-conditions.test.mjs │ │ ├── module-name-mapper.test.mjs │ │ ├── node-custom-export-conditions.test.mjs │ │ ├── node.test.mjs │ │ ├── resolveCjs.test.cjs │ │ └── resolveEsm.test.mjs │ ├── custom-env-conditions-method-override.js │ ├── custom-env.js │ ├── node_modules │ │ ├── fake-dep │ │ │ ├── module.cjs │ │ │ ├── module.mjs │ │ │ └── package.json │ │ ├── fake-dual-dep │ │ │ ├── browser.mjs │ │ │ ├── deno.mjs │ │ │ ├── node.mjs │ │ │ ├── package.json │ │ │ ├── react-native.js │ │ │ └── special.mjs │ │ └── fake-dual-dep2 │ │ │ ├── browser.mjs │ │ │ ├── node.mjs │ │ │ └── package.json │ └── package.json ├── resolve-get-paths │ ├── __tests__ │ │ └── resolveGetPaths.test.js │ ├── babel.config.js │ └── package.json ├── resolve-no-extensions │ ├── __tests__ │ │ └── test.js │ ├── babel.config.js │ ├── index.js │ ├── package.json │ └── some-json-file.json ├── resolve-node-module │ ├── __mocks__ │ │ ├── mock-jsx-module │ │ │ ├── index.jsx │ │ │ └── package.json │ │ ├── mock-module-alt │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── mock-module-without-pkg │ │ │ └── index.js │ │ └── mock-module │ │ │ ├── index.js │ │ │ └── package.json │ ├── __tests__ │ │ └── resolve-node-module.test.js │ └── package.json ├── resolve-with-paths │ ├── __tests__ │ │ └── resolveWithPaths.test.js │ ├── babel.config.js │ ├── dir │ │ └── mod.js │ └── package.json ├── resolve │ ├── Test5.js │ ├── Test7.js │ ├── __mocks__ │ │ ├── Test5.js │ │ └── Test6.js │ ├── __tests__ │ │ ├── nope.txt │ │ └── resolve.test.js │ ├── hasteImpl.js │ ├── package.json │ ├── requiresUnexistingModule.js │ ├── test1.android.js │ ├── test1.js │ ├── test1.json │ ├── test1.native.js │ ├── test2.js │ ├── test2.json │ ├── test2.native.js │ ├── test2mapper.js │ ├── test2mapper.native.js │ ├── test3.js │ ├── test3.json │ └── test4.json ├── retain-all-files │ ├── node_modules │ │ └── retainAllFiles.test.js │ └── package.json ├── run-programmatically-multiple-projects │ ├── client │ │ └── client.test.js │ ├── package.json │ ├── run-jest.js │ └── server │ │ └── server.test.js ├── run-programmatically │ ├── babel.config.js │ ├── cjs.js │ ├── esm.js │ ├── index.js │ └── package.json ├── runJest.ts ├── runtime-internal-module-registry │ ├── __mocks__ │ │ └── fs.js │ ├── __tests__ │ │ └── runtimeInternalModuleRegistry.test.js │ └── package.json ├── select-projects-missing-name │ ├── __tests__ │ │ ├── first-project.test.js │ │ └── second-project.test.js │ └── package.json ├── select-projects │ ├── __tests__ │ │ ├── first-project.test.js │ │ └── second-project.test.js │ └── package.json ├── setup-files-after-env-config │ ├── __tests__ │ │ ├── runnerPatch.test.js │ │ ├── setupAsyncFunction.test.js │ │ ├── test1.test.js │ │ └── test2.test.js │ ├── setup1.js │ ├── setup2.js │ ├── setupAsyncFunction.js │ └── setupHooksIntoRunner.js ├── setup-files │ ├── __tests__ │ │ └── setup.test.js │ ├── fetched-data.js │ ├── package.json │ └── setup-fetchdata.js ├── shard │ ├── __tests__ │ │ ├── 1.test.js │ │ ├── 2.test.js │ │ └── 3.test.js │ ├── no-sharding-test-sequencer.js │ ├── package.json │ └── sharding-test-sequencer.js ├── snapshot-concurrent │ ├── __tests__ │ │ ├── __snapshots__ │ │ │ └── works.test.js.snap │ │ └── works.test.js │ └── package.json ├── snapshot-escape │ ├── __tests__ │ │ ├── snapshot.test.js │ │ ├── snapshotEscapeRegex.js │ │ └── snapshotEscapeSubstitution.test.js │ └── package.json ├── snapshot-formatting-changes │ ├── __tests__ │ │ ├── __snapshots__ │ │ │ └── snapshot.test.js.snap │ │ └── snapshot.test.js │ └── package.json ├── snapshot-mock-fs │ ├── __tests__ │ │ └── snapshot.test.js │ └── package.json ├── snapshot-resolver │ ├── __tests__ │ │ └── snapshot.test.js │ ├── customSnapshotResolver.js │ └── package.json ├── snapshot-serializers │ ├── __tests__ │ │ └── snapshot.test.js │ ├── package.json │ ├── plugins │ │ ├── bar.js │ │ └── foo │ │ │ └── index.js │ ├── transformer.js │ └── utils.js ├── snapshot-unknown │ ├── __tests__ │ │ ├── __snapshots__ │ │ │ ├── fails.test.js.snap │ │ │ ├── fails2.test.js.snap │ │ │ └── works.test.js.snap │ │ └── works.test.js │ └── package.json ├── snapshot │ ├── __tests__ │ │ ├── secondSnapshot.test.js │ │ └── snapshot.test.js │ └── package.json ├── stack-trace-no-capture-stack-trace │ ├── __tests__ │ │ └── runtimeError.test.js │ └── package.json ├── stack-trace-source-maps-with-coverage │ ├── __tests__ │ │ └── fails.ts │ ├── lib.ts │ ├── package.json │ ├── preprocessor.js │ └── yarn.lock ├── stack-trace-source-maps │ ├── __tests__ │ │ └── fails.ts │ ├── package.json │ ├── preprocessor.js │ └── yarn.lock ├── stack-trace │ ├── __tests__ │ │ ├── runtimeError.test.js │ │ ├── stackTrace.test.js │ │ ├── stackTraceWithoutMessage.test.js │ │ └── testError.test.js │ └── package.json ├── summary-threshold │ ├── __tests__ │ │ ├── summarySuite1.test.js │ │ ├── summarySuite2.test.js │ │ └── summarySuite3.test.js │ └── package.json ├── test-environment-async │ ├── TestEnvironment.js │ ├── __tests__ │ │ └── custom.test.js │ └── package.json ├── test-environment-circus-async │ ├── CircusAsyncHandleTestEventEnvironment.js │ ├── __tests__ │ │ └── circusHandleTestEvent.test.js │ └── package.json ├── test-environment-circus │ ├── CircusHandleTestEventEnvironment.js │ ├── __tests__ │ │ └── circusHandleTestEvent.test.js │ └── package.json ├── test-environment-esm │ ├── EnvESM.js │ ├── __tests__ │ │ └── testUsingESMTestEnv.test.js │ └── package.json ├── test-environment-run-script │ ├── EnvUsingRunScript.js │ ├── __tests__ │ │ └── envUsingRunScript.test.js │ └── package.json ├── test-environment │ ├── DocblockPragmasEnvironment.js │ ├── EsmDefaultEnvironment.js │ ├── __tests__ │ │ ├── docblockPragmas.test.js │ │ ├── env.test.js │ │ ├── environmentOptionsFromDocblock.test.js │ │ └── esmDefault.test.js │ └── package.json ├── test-failing-snapshot-all-pass │ ├── __tests__ │ │ ├── __snapshots__ │ │ │ └── snapshot.test.js.snap │ │ ├── inlineSnapshot.test.js │ │ └── snapshot.test.js │ └── package.json ├── test-failing-snapshot │ ├── __tests__ │ │ ├── __snapshots__ │ │ │ └── snapshot.test.js.snap │ │ ├── inlineSnapshot.test.js │ │ └── snapshot.test.js │ └── package.json ├── test-failing │ ├── __tests__ │ │ ├── statuses.test.js │ │ ├── worksWithConcurrentMode.test.js │ │ ├── worksWithConcurrentOnlyMode.test.js │ │ ├── worksWithOnlyMode.test.js │ │ └── worksWithSkipMode.test.js │ └── package.json ├── test-in-root │ ├── foo.js │ ├── footest.js │ ├── package.json │ ├── spec.js │ └── test.js ├── test-match-default │ ├── __tests__ │ │ ├── test.cjs │ │ ├── test.cts │ │ ├── test.js │ │ ├── test.jsx │ │ ├── test.mjs │ │ ├── test.mts │ │ ├── test.ts │ │ └── test.tsx │ ├── dot-spec-tests │ │ ├── test.spec.cjs │ │ ├── test.spec.cts │ │ ├── test.spec.js │ │ ├── test.spec.jsx │ │ ├── test.spec.mjs │ │ ├── test.spec.mts │ │ ├── test.spec.ts │ │ └── test.spec.tsx │ ├── package.json │ └── tsconfig.json ├── test-match-ts │ ├── __tests__ │ │ ├── sample-suite.mts │ │ └── sample-suite2.cts │ └── package.json ├── test-match │ ├── package.json │ └── test-suites │ │ ├── sample-suite.mjs │ │ └── sample-suite2.cjs ├── test-name-pattern-skipped │ ├── __tests__ │ │ └── testNamePatternSkipped.test.js │ └── package.json ├── test-name-pattern │ ├── __tests__ │ │ └── testNamePattern.test.js │ └── package.json ├── test-path-patterns-subprojects │ ├── config │ │ └── jest.config.js │ ├── package.json │ └── src │ │ └── __tests__ │ │ ├── testA.js │ │ ├── testB.js │ │ └── testC.js ├── test-results-processor │ ├── __tests__ │ │ └── processor.test.js │ ├── package.json │ ├── processor.js │ ├── processor.mjs │ └── processorAsync.js ├── test-retries │ ├── __tests__ │ │ ├── beforeAllFailure.test.js │ │ ├── beforeAllFailureConcurrent.test.js │ │ ├── control.test.js │ │ ├── controlConcurrent.test.js │ │ ├── e2e.test.js │ │ ├── e2eConcurrent.test.js │ │ ├── logErrorsBeforeRetries.test.js │ │ ├── retry.test.js │ │ ├── retryConcurrent.test.js │ │ ├── retryImmediately.test.js │ │ ├── retryImmediatelyConcurrent.test.js │ │ ├── waitBeforeRetry.test.js │ │ └── waitBeforeRetryFakeTimers.test.js │ ├── package.json │ └── reporters │ │ └── RetryReporter.js ├── test-todo │ ├── __tests__ │ │ ├── only-todo.test.js │ │ ├── statuses.test.js │ │ ├── todoMultipleArgs.test.js │ │ ├── todoNoArgs.test.js │ │ ├── todoNonString.test.js │ │ └── verbose.test.js │ └── package.json ├── to-match-inline-snapshot-with-prettier-3 │ ├── package.json │ └── yarn.lock ├── to-match-inline-snapshot-with-retries │ └── package.json ├── to-match-inline-snapshot │ ├── babel.config.js │ └── package.json ├── to-match-snapshot-with-retries │ └── package.json ├── to-match-snapshot-with-string-serializer │ ├── package.json │ └── serializers │ │ └── string.js ├── to-match-snapshot │ └── package.json ├── to-throw-error-matching-inline-snapshot │ ├── babel.config.js │ └── package.json ├── to-throw-error-matching-snapshot │ └── package.json ├── transform-linked-modules │ ├── __tests__ │ │ └── linkedModules.test.js │ ├── ignored │ │ ├── normal.js │ │ └── symlink.js │ ├── package.json │ ├── package │ │ └── index.js │ └── preprocessor.js ├── transform │ ├── async-transformer │ │ ├── __tests__ │ │ │ └── test.js │ │ ├── module-under-test.js │ │ ├── my-transform.cjs │ │ ├── package.json │ │ └── some-symbol.js │ ├── babel-jest-async │ │ ├── __tests__ │ │ │ └── babelJest.test.js │ │ ├── only-file-to-transform.js │ │ ├── package.json │ │ ├── transformer.js │ │ └── yarn.lock │ ├── babel-jest-ignored │ │ ├── __tests__ │ │ │ └── ignoredFile.test.js │ │ ├── babel.config.js │ │ └── package.json │ ├── babel-jest-manual │ │ ├── __tests__ │ │ │ └── babelJest.test.js │ │ ├── foo.js │ │ ├── package.json │ │ ├── transformer.js │ │ └── yarn.lock │ ├── babel-jest │ │ ├── __tests__ │ │ │ ├── babelJest.test.js │ │ │ └── changedCwd.test.js │ │ ├── babel.config.js │ │ ├── notCovered.js │ │ ├── package.json │ │ ├── some-dir │ │ │ └── .gitkeep │ │ ├── this-directory-is-covered │ │ │ ├── covered.js │ │ │ └── excludedFromCoverage.js │ │ └── yarn.lock │ ├── cache │ │ ├── __tests__ │ │ │ ├── aTests.js │ │ │ ├── bTests.js │ │ │ ├── cTests.js │ │ │ └── dTests.js │ │ ├── common-file.js │ │ ├── package.json │ │ └── transformer.js │ ├── custom-instrumenting-preprocessor │ │ ├── __tests__ │ │ │ └── customPreprocessor.test.js │ │ ├── package.json │ │ ├── preprocessor.js │ │ └── src │ │ │ ├── index.js │ │ │ └── someOtherFile.js │ ├── ecmascript-modules-support │ │ ├── __tests__ │ │ │ └── ecmascriptModulesSupport.mjs │ │ ├── babel.config.js │ │ ├── package.json │ │ └── src │ │ │ ├── index.mjs │ │ │ └── module.mjs │ ├── esm-transformer │ │ ├── __tests__ │ │ │ └── test.js │ │ ├── module.js │ │ ├── my-transform.mjs │ │ └── package.json │ ├── multiple-transformers │ │ ├── __tests__ │ │ │ ├── __snapshots__ │ │ │ │ └── multipleTransformers.test.js.snap │ │ │ └── multipleTransformers.test.js │ │ ├── babel.config.js │ │ ├── cssPreprocessor.js │ │ ├── filePreprocessor.js │ │ ├── jsPreprocessor.js │ │ ├── package.json │ │ ├── src │ │ │ ├── App.css │ │ │ ├── App.js │ │ │ └── logo.svg │ │ └── yarn.lock │ ├── no-babel-jest │ │ ├── __tests__ │ │ │ ├── failsWithSyntaxError.test.js │ │ │ └── passesWithNoBabelJest.js │ │ ├── package.json │ │ └── this-directory-is-covered │ │ │ ├── covered.js │ │ │ └── excludedFromCoverage.js │ ├── transform-environment │ │ ├── __tests__ │ │ │ └── add.test.js │ │ ├── babel.config.js │ │ ├── environment.ts │ │ ├── package.json │ │ └── tsconfig.json │ ├── transform-esm-runner │ │ ├── __tests__ │ │ │ └── add.test.js │ │ ├── package.json │ │ └── runner.mjs │ ├── transform-esm-testrunner │ │ ├── __tests__ │ │ │ └── add.test.js │ │ ├── package.json │ │ ├── test-runner.mjs │ │ └── yarn.lock │ ├── transform-runner │ │ ├── __tests__ │ │ │ └── add.test.js │ │ ├── babel.config.js │ │ ├── package.json │ │ ├── runner.ts │ │ └── tsconfig.json │ ├── transform-snapshotResolver │ │ ├── __tests__ │ │ │ └── snapshot.test.js │ │ ├── babel.config.js │ │ ├── customSnapshotResolver.ts │ │ ├── package.json │ │ ├── tsconfig.json │ │ └── yarn.lock │ ├── transform-testrunner │ │ ├── __tests__ │ │ │ └── add.test.js │ │ ├── babel.config.js │ │ ├── package.json │ │ ├── test-runner.ts │ │ ├── tsconfig.json │ │ └── yarn.lock │ └── transformer-config │ │ ├── .babelrc │ │ ├── NotCovered.js │ │ ├── __tests__ │ │ └── transformer-config.test.js │ │ ├── package.json │ │ ├── this-directory-is-covered │ │ ├── Covered.js │ │ └── ExcludedFromCoverage.js │ │ └── yarn.lock ├── tsconfig.json ├── typescript-config │ └── modern-module-resolution │ │ ├── __tests__ │ │ └── test.js │ │ ├── jest.config.ts │ │ ├── package.json │ │ └── tsconfig.json ├── typescript-coverage │ ├── __tests__ │ │ └── coveredTest.ts │ ├── covered.ts │ ├── package.json │ ├── typescriptPreprocessor.js │ └── yarn.lock ├── verbose-reporter │ ├── __tests__ │ │ └── verbose.test.js │ └── package.json ├── vmscript-coverage │ ├── __tests__ │ │ └── extract-coverage.test.js │ ├── package.json │ └── package │ │ └── vmscript.js ├── watch-plugins │ ├── cjs │ │ ├── __tests__ │ │ │ └── index.js │ │ ├── my-watch-plugin.cjs │ │ └── package.json │ ├── js-type-module │ │ ├── __tests__ │ │ │ └── index.js │ │ ├── my-watch-plugin.js │ │ └── package.json │ ├── js │ │ ├── __tests__ │ │ │ └── index.js │ │ ├── my-watch-plugin.js │ │ └── package.json │ └── mjs │ │ ├── __tests__ │ │ └── index.js │ │ ├── my-watch-plugin.mjs │ │ └── package.json ├── worker-restart-before-send │ ├── __tests__ │ │ ├── test1.js │ │ ├── test2.js │ │ └── test3.js │ ├── package.json │ └── testSequencer.js ├── worker-restarting │ ├── __tests__ │ │ ├── test1.js │ │ ├── test2.js │ │ └── test3.js │ └── package.json └── wrong-env │ ├── __tests__ │ ├── beforeTest.js │ ├── jsdom.js │ └── node.js │ └── package.json ├── eslint.config.mjs ├── examples ├── angular │ ├── .babelrc.js │ ├── app.component.spec.ts │ ├── app.component.ts │ ├── app.module.ts │ ├── jest.config.js │ ├── package.json │ ├── setupJest.js │ ├── shared │ │ ├── data.service.spec.ts │ │ ├── data.service.ts │ │ ├── sub.service.spec.ts │ │ └── sub.service.ts │ └── tsconfig.json ├── async │ ├── .babelrc.js │ ├── __mocks__ │ │ └── request.js │ ├── __tests__ │ │ └── user.test.js │ ├── package.json │ ├── request.js │ └── user.js ├── automatic-mocks │ ├── .babelrc.js │ ├── __tests__ │ │ ├── automock.test.js │ │ ├── createMockFromModule.test.js │ │ └── disableAutomocking.test.js │ ├── package.json │ └── utils.js ├── expect-extend │ ├── __tests__ │ │ └── ranges.test.ts │ ├── package.json │ ├── toBeWithinRange.ts │ └── tsconfig.json ├── getting-started │ ├── .babelrc.js │ ├── package.json │ ├── sum.js │ └── sum.test.js ├── jquery │ ├── .babelrc.js │ ├── __tests__ │ │ ├── display_user.test.js │ │ └── fetch_current_user.test.js │ ├── displayUser.js │ ├── fetchCurrentUser.js │ └── package.json ├── manual-mocks │ ├── .babelrc.js │ ├── FileSummarizer.js │ ├── __mocks__ │ │ ├── fs.js │ │ └── lodash.js │ ├── __tests__ │ │ ├── file_summarizer.test.js │ │ ├── lodashMocking.test.js │ │ ├── user.test.js │ │ ├── userMocked.test.js │ │ └── utils.test.js │ ├── models │ │ ├── __mocks__ │ │ │ └── user.js │ │ └── user.js │ ├── package.json │ └── utils.js ├── module-mock │ ├── .babelrc.js │ ├── __tests__ │ │ ├── full_mock.js │ │ ├── mock_per_test.js │ │ └── partial_mock.js │ ├── fruit.js │ └── package.json ├── react-native │ ├── .buckconfig │ ├── .gitignore │ ├── .watchmanconfig │ ├── Intro.js │ ├── __tests__ │ │ ├── __snapshots__ │ │ │ └── intro.test.js.snap │ │ └── intro.test.js │ ├── babel.config.js │ ├── index.js │ ├── jest.config.js │ └── package.json ├── react-testing-library │ ├── .babelrc.js │ ├── CheckboxWithLabel.js │ ├── __tests__ │ │ └── CheckboxWithLabel-test.js │ └── package.json ├── react │ ├── .babelrc.js │ ├── CheckboxWithLabel.js │ ├── __tests__ │ │ └── CheckboxWithLabel-test.js │ └── package.json ├── snapshot │ ├── .babelrc.js │ ├── Clock.js │ ├── Link.js │ ├── __tests__ │ │ ├── __snapshots__ │ │ │ ├── clock.test.js.snap │ │ │ └── link.test.js.snap │ │ ├── clock.test.js │ │ └── link.test.js │ └── package.json ├── timer │ ├── .babelrc.js │ ├── __tests__ │ │ ├── infinite_timer_game.test.js │ │ └── timer_game.test.js │ ├── infiniteTimerGame.js │ ├── package.json │ └── timerGame.js └── typescript │ ├── .babelrc.js │ ├── CheckboxWithLabel.tsx │ ├── Memory.ts │ ├── __tests__ │ ├── CheckboxWithLabel-test.tsx │ ├── calc.test.ts │ ├── sub-test.ts │ ├── sum-test.ts │ ├── sum.test.js │ └── utils.test.ts │ ├── calc.ts │ ├── package.json │ ├── sub.ts │ ├── sum.js │ ├── sum.ts │ ├── tsconfig.json │ └── utils.ts ├── jest ├── jest.config.ci.mjs ├── jest.config.mjs ├── jest.config.ts.mjs ├── lerna.json ├── netlify.toml ├── package.json ├── packages ├── babel-jest │ ├── .npmignore │ ├── README.md │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── getCacheKey.test.ts │ │ │ ├── index.ts │ │ │ └── tsconfig.json │ │ ├── index.ts │ │ └── loadBabelConfig.ts │ └── tsconfig.json ├── babel-plugin-jest-hoist │ ├── .npmignore │ ├── README.md │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── __snapshots__ │ │ │ │ └── hoistPlugin.test.ts.snap │ │ │ ├── hoistPlugin.test.ts │ │ │ └── tsconfig.json │ │ └── index.ts │ └── tsconfig.json ├── babel-preset-jest │ ├── .npmignore │ ├── README.md │ ├── index.js │ └── package.json ├── create-jest │ ├── .npmignore │ ├── README.md │ ├── bin │ │ └── create-jest.js │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── __fixtures__ │ │ │ │ ├── has-jest-config-file-cjs │ │ │ │ │ ├── jest.config.cjs │ │ │ │ │ └── package.json │ │ │ │ ├── has-jest-config-file-cts │ │ │ │ │ ├── jest.config.cts │ │ │ │ │ └── package.json │ │ │ │ ├── has-jest-config-file-js │ │ │ │ │ ├── jest.config.js │ │ │ │ │ └── package.json │ │ │ │ ├── has-jest-config-file-json │ │ │ │ │ ├── jest.config.json │ │ │ │ │ └── package.json │ │ │ │ ├── has-jest-config-file-mjs │ │ │ │ │ ├── jest.config.mjs │ │ │ │ │ └── package.json │ │ │ │ ├── has-jest-config-file-ts │ │ │ │ │ ├── jest.config.ts │ │ │ │ │ └── package.json │ │ │ │ ├── has-jest-config-in-package-json │ │ │ │ │ └── package.json │ │ │ │ ├── no-package-json │ │ │ │ │ └── index.js │ │ │ │ ├── only-package-json │ │ │ │ │ └── package.json │ │ │ │ ├── test-generated-jest-config-ts │ │ │ │ │ └── package.json │ │ │ │ ├── test-script-configured │ │ │ │ │ └── package.json │ │ │ │ ├── type-module │ │ │ │ │ └── package.json │ │ │ │ ├── typescript-in-dependencies │ │ │ │ │ └── package.json │ │ │ │ └── typescript-in-dev-dependencies │ │ │ │ │ └── package.json │ │ │ ├── __snapshots__ │ │ │ │ ├── init.test.ts.snap │ │ │ │ └── modifyPackageJson.test.ts.snap │ │ │ ├── init.test.ts │ │ │ ├── modifyPackageJson.test.ts │ │ │ └── tsconfig.json │ │ ├── errors.ts │ │ ├── generateConfigFile.ts │ │ ├── index.ts │ │ ├── modifyPackageJson.ts │ │ ├── questions.ts │ │ ├── runCreate.ts │ │ └── types.ts │ └── tsconfig.json ├── diff-sequences │ ├── .npmignore │ ├── README.md │ ├── __benchmarks__ │ │ ├── example.md │ │ └── test.js │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── __snapshots__ │ │ │ │ └── index.test.ts.snap │ │ │ ├── index.property.test.ts │ │ │ ├── index.test.ts │ │ │ └── tsconfig.json │ │ └── index.ts │ └── tsconfig.json ├── expect-utils │ ├── .npmignore │ ├── README.md │ ├── __typetests__ │ │ ├── tsconfig.json │ │ └── utils.test.ts │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── isError.test.ts │ │ │ ├── tsconfig.json │ │ │ └── utils.test.ts │ │ ├── immutableUtils.ts │ │ ├── index.ts │ │ ├── jasmineUtils.ts │ │ ├── types.ts │ │ └── utils.ts │ └── tsconfig.json ├── expect │ ├── .npmignore │ ├── README.md │ ├── __typetests__ │ │ ├── expect.test.ts │ │ ├── expectTyped.test.ts │ │ └── tsconfig.json │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── __arbitraries__ │ │ │ │ └── sharedSettings.ts │ │ │ ├── __snapshots__ │ │ │ │ ├── assertionCounts.test.ts.snap │ │ │ │ ├── customEqualityTesters.test.ts.snap │ │ │ │ ├── customEqualityTestersRecursive.test.ts.snap │ │ │ │ ├── extend.test.ts.snap │ │ │ │ ├── matchers.test.js.snap │ │ │ │ ├── spyMatchers.test.ts.snap │ │ │ │ └── toThrowMatchers.test.ts.snap │ │ │ ├── assertionCounts.test.ts │ │ │ ├── asymmetricMatchers.test.ts │ │ │ ├── customEqualityTesters.test.ts │ │ │ ├── customEqualityTestersRecursive.test.ts │ │ │ ├── extend.test.ts │ │ │ ├── matchers-toContain.property.test.ts │ │ │ ├── matchers-toContainEqual.property.test.ts │ │ │ ├── matchers-toEqual.property.test.ts │ │ │ ├── matchers-toStrictEqual.property.test.ts │ │ │ ├── matchers.test.js │ │ │ ├── spyMatchers.test.ts │ │ │ ├── stacktrace.test.ts │ │ │ ├── symbolInObjects.test.ts │ │ │ ├── toEqual-dom.test.ts │ │ │ ├── toThrowMatchers.test.ts │ │ │ └── tsconfig.json │ │ ├── asymmetricMatchers.ts │ │ ├── extractExpectedAssertionsErrors.ts │ │ ├── index.ts │ │ ├── jestMatchersObject.ts │ │ ├── matchers.ts │ │ ├── print.ts │ │ ├── spyMatchers.ts │ │ ├── toThrowMatchers.ts │ │ └── types.ts │ └── tsconfig.json ├── jest-changed-files │ ├── .npmignore │ ├── README.md │ ├── package.json │ ├── src │ │ ├── git.ts │ │ ├── hg.ts │ │ ├── index.ts │ │ ├── sl.ts │ │ └── types.ts │ └── tsconfig.json ├── jest-circus │ ├── .npmignore │ ├── README.md │ ├── package.json │ ├── src │ │ ├── __mocks__ │ │ │ ├── testEventHandler.ts │ │ │ └── testUtils.ts │ │ ├── __tests__ │ │ │ ├── __snapshots__ │ │ │ │ ├── afterAll.test.ts.snap │ │ │ │ ├── baseTest.test.ts.snap │ │ │ │ ├── hooks.test.ts.snap │ │ │ │ ├── randomizeTest.test.ts.snap │ │ │ │ └── shuffleArray.test.ts.snap │ │ │ ├── afterAll.test.ts │ │ │ ├── baseTest.test.ts │ │ │ ├── circusItFailingTestError.test.ts │ │ │ ├── circusItTestError.test.ts │ │ │ ├── circusItTodoTestError.test.ts │ │ │ ├── eventHandler.test.ts │ │ │ ├── hooks.test.ts │ │ │ ├── hooksError.test.ts │ │ │ ├── randomizeTest.test.ts │ │ │ ├── shuffleArray.test.ts │ │ │ ├── tsconfig.json │ │ │ └── utils.test.ts │ │ ├── eventHandler.ts │ │ ├── formatNodeAssertErrors.ts │ │ ├── globalErrorHandlers.ts │ │ ├── index.ts │ │ ├── legacy-code-todo-rewrite │ │ │ ├── __tests__ │ │ │ │ ├── jestAdapterInit.test.ts │ │ │ │ └── tsconfig.json │ │ │ ├── jestAdapter.ts │ │ │ └── jestAdapterInit.ts │ │ ├── run.ts │ │ ├── runner.ts │ │ ├── shuffleArray.ts │ │ ├── state.ts │ │ ├── testCaseReportHandler.ts │ │ ├── types.ts │ │ ├── unhandledRejectionHandler.ts │ │ └── utils.ts │ └── tsconfig.json ├── jest-cli │ ├── .npmignore │ ├── README.md │ ├── __typetests__ │ │ ├── jest-cli.test.ts │ │ └── tsconfig.json │ ├── bin │ │ └── jest.js │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── args.test.ts │ │ │ └── tsconfig.json │ │ ├── args.ts │ │ ├── index.ts │ │ └── run.ts │ └── tsconfig.json ├── jest-config │ ├── .npmignore │ ├── package.json │ ├── src │ │ ├── Defaults.ts │ │ ├── Deprecated.ts │ │ ├── Descriptions.ts │ │ ├── ReporterValidationErrors.ts │ │ ├── ValidConfig.ts │ │ ├── __mocks__ │ │ │ ├── fs.js │ │ │ ├── os.js │ │ │ └── read-pkg.js │ │ ├── __tests__ │ │ │ ├── Defaults.test.ts │ │ │ ├── __snapshots__ │ │ │ │ └── normalize.test.ts.snap │ │ │ ├── getMaxWorkers.test.ts │ │ │ ├── jest-preset.json │ │ │ ├── normalize.test.ts │ │ │ ├── parseShardPair.test.ts │ │ │ ├── readConfig.test.ts │ │ │ ├── readConfigFileAndSetRootDir.test.ts │ │ │ ├── readConfigs.test.ts │ │ │ ├── readInitialOptions.test.ts │ │ │ ├── resolveConfigPath.test.ts │ │ │ ├── setFromArgv.test.ts │ │ │ ├── stringToBytes.test.ts │ │ │ └── tsconfig.json │ │ ├── color.ts │ │ ├── constants.ts │ │ ├── getCacheDirectory.ts │ │ ├── getMaxWorkers.ts │ │ ├── index.ts │ │ ├── normalize.ts │ │ ├── parseShardPair.ts │ │ ├── readConfigFileAndSetRootDir.ts │ │ ├── resolveConfigPath.ts │ │ ├── setFromArgv.ts │ │ ├── stringToBytes.ts │ │ └── utils.ts │ └── tsconfig.json ├── jest-console │ ├── .npmignore │ ├── package.json │ ├── src │ │ ├── BufferedConsole.ts │ │ ├── CustomConsole.ts │ │ ├── NullConsole.ts │ │ ├── __tests__ │ │ │ ├── CustomConsole.test.ts │ │ │ ├── bufferedConsole.test.ts │ │ │ ├── getConsoleOutput.test.ts │ │ │ └── tsconfig.json │ │ ├── getConsoleOutput.ts │ │ ├── index.ts │ │ └── types.ts │ └── tsconfig.json ├── jest-core │ ├── .npmignore │ ├── README.md │ ├── package.json │ ├── src │ │ ├── FailedTestsCache.ts │ │ ├── FailedTestsInteractiveMode.ts │ │ ├── ReporterDispatcher.ts │ │ ├── SearchSource.ts │ │ ├── SnapshotInteractiveMode.ts │ │ ├── TestNamePatternPrompt.ts │ │ ├── TestPathPatternPrompt.ts │ │ ├── TestScheduler.ts │ │ ├── __tests__ │ │ │ ├── FailedTestsCache.test.js │ │ │ ├── FailedTestsInteractiveMode.test.js │ │ │ ├── SearchSource.test.ts │ │ │ ├── SnapshotInteractiveMode.test.js │ │ │ ├── TestScheduler.test.js │ │ │ ├── __fixtures__ │ │ │ │ ├── watchPlugin.js │ │ │ │ ├── watchPlugin2.js │ │ │ │ └── watchPluginThrows.js │ │ │ ├── __snapshots__ │ │ │ │ ├── SnapshotInteractiveMode.test.js.snap │ │ │ │ ├── getNoTestsFoundMessage.test.ts.snap │ │ │ │ ├── watch.test.js.snap │ │ │ │ ├── watchFilenamePatternMode.test.js.snap │ │ │ │ └── watchTestNamePatternMode.test.js.snap │ │ │ ├── collectHandles.test.js │ │ │ ├── getNoTestsFoundMessage.test.ts │ │ │ ├── globals.test.ts │ │ │ ├── runJest.test.js │ │ │ ├── testSchedulerHelper.test.js │ │ │ ├── test_root │ │ │ │ ├── .hiddenFolder │ │ │ │ │ └── not-really-a-test.txt │ │ │ │ ├── __testtests__ │ │ │ │ │ ├── do-not-match-me.txt │ │ │ │ │ ├── not-really-a-test.txt │ │ │ │ │ ├── test.foobar │ │ │ │ │ ├── test.js │ │ │ │ │ └── test.jsx │ │ │ │ ├── module.foobar │ │ │ │ ├── module.jsx │ │ │ │ └── noTests.js │ │ │ ├── test_root_with_(parentheses) │ │ │ │ ├── __testtests__ │ │ │ │ │ └── test.js │ │ │ │ └── module.jsx │ │ │ ├── tsconfig.json │ │ │ ├── watch.test.js │ │ │ ├── watchFileChanges.test.ts │ │ │ ├── watchFilenamePatternMode.test.js │ │ │ └── watchTestNamePatternMode.test.js │ │ ├── cli │ │ │ └── index.ts │ │ ├── collectHandles.ts │ │ ├── getChangedFilesPromise.ts │ │ ├── getConfigsOfProjectsToRun.ts │ │ ├── getNoTestFound.ts │ │ ├── getNoTestFoundFailed.ts │ │ ├── getNoTestFoundPassWithNoTests.ts │ │ ├── getNoTestFoundRelatedToChangedFiles.ts │ │ ├── getNoTestFoundVerbose.ts │ │ ├── getNoTestsFoundMessage.ts │ │ ├── getProjectDisplayName.ts │ │ ├── getProjectNamesMissingWarning.ts │ │ ├── getSelectProjectsMessage.ts │ │ ├── index.ts │ │ ├── lib │ │ │ ├── __tests__ │ │ │ │ ├── __snapshots__ │ │ │ │ │ └── logDebugMessages.test.ts.snap │ │ │ │ ├── isValidPath.test.ts │ │ │ │ ├── logDebugMessages.test.ts │ │ │ │ ├── serializeToJSON.test.ts │ │ │ │ └── tsconfig.json │ │ │ ├── activeFiltersMessage.ts │ │ │ ├── createContext.ts │ │ │ ├── handleDeprecationWarnings.ts │ │ │ ├── isValidPath.ts │ │ │ ├── logDebugMessages.ts │ │ │ ├── serializeToJSON.ts │ │ │ ├── updateGlobalConfig.ts │ │ │ └── watchPluginsHelpers.ts │ │ ├── plugins │ │ │ ├── FailedTestsInteractive.ts │ │ │ ├── Quit.ts │ │ │ ├── TestNamePattern.ts │ │ │ ├── TestPathPattern.ts │ │ │ ├── UpdateSnapshots.ts │ │ │ ├── UpdateSnapshotsInteractive.ts │ │ │ └── __tests__ │ │ │ │ ├── FailedTestsInteractive.test.js │ │ │ │ └── tsconfig.json │ │ ├── runGlobalHook.ts │ │ ├── runJest.ts │ │ ├── testSchedulerHelper.ts │ │ ├── types.ts │ │ ├── version.ts │ │ └── watch.ts │ └── tsconfig.json ├── jest-create-cache-key-function │ ├── .npmignore │ ├── README.md │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── index.test.ts │ │ │ └── tsconfig.json │ │ └── index.ts │ └── tsconfig.json ├── jest-diff │ ├── .npmignore │ ├── README.md │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── __snapshots__ │ │ │ │ ├── diff.test.ts.snap │ │ │ │ ├── getAlignedDiffs.test.ts.snap │ │ │ │ └── joinAlignedDiffs.test.ts.snap │ │ │ ├── diff.test.ts │ │ │ ├── diffStringsRaw.test.ts │ │ │ ├── getAlignedDiffs.test.ts │ │ │ ├── joinAlignedDiffs.test.ts │ │ │ └── tsconfig.json │ │ ├── cleanupSemantic.ts │ │ ├── constants.ts │ │ ├── diffLines.ts │ │ ├── diffStrings.ts │ │ ├── getAlignedDiffs.ts │ │ ├── index.ts │ │ ├── joinAlignedDiffs.ts │ │ ├── normalizeDiffOptions.ts │ │ ├── printDiffs.ts │ │ └── types.ts │ └── tsconfig.json ├── jest-docblock │ ├── .npmignore │ ├── README.md │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── index.test.ts │ │ │ └── tsconfig.json │ │ └── index.ts │ └── tsconfig.json ├── jest-each │ ├── .npmignore │ ├── README.md │ ├── assets │ │ ├── default-demo.gif │ │ ├── describe-demo.gif │ │ ├── tagged-template-literal.gif │ │ └── test-demo.gif │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── __snapshots__ │ │ │ │ ├── array.test.ts.snap │ │ │ │ ├── index.test.ts.snap │ │ │ │ └── template.test.ts.snap │ │ │ ├── array.test.ts │ │ │ ├── index.test.ts │ │ │ ├── template.test.ts │ │ │ └── tsconfig.json │ │ ├── bind.ts │ │ ├── index.ts │ │ ├── table │ │ │ ├── array.ts │ │ │ ├── interpolation.ts │ │ │ └── template.ts │ │ └── validation.ts │ └── tsconfig.json ├── jest-environment-jsdom-abstract │ ├── .npmignore │ ├── package.json │ ├── src │ │ └── index.ts │ └── tsconfig.json ├── jest-environment-jsdom │ ├── .npmignore │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── jsdom_environment.test.ts │ │ │ └── tsconfig.json │ │ └── index.ts │ └── tsconfig.json ├── jest-environment-node │ ├── .npmignore │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── node_environment.test.ts │ │ │ ├── node_environment_2.test.ts │ │ │ └── tsconfig.json │ │ └── index.ts │ └── tsconfig.json ├── jest-environment │ ├── .npmignore │ ├── package.json │ ├── src │ │ └── index.ts │ └── tsconfig.json ├── jest-expect │ ├── .npmignore │ ├── README.md │ ├── __typetests__ │ │ ├── jest-expect.test.ts │ │ └── tsconfig.json │ ├── package.json │ ├── src │ │ ├── index.ts │ │ └── types.ts │ └── tsconfig.json ├── jest-fake-timers │ ├── .npmignore │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── __snapshots__ │ │ │ │ ├── legacyFakeTimers.test.ts.snap │ │ │ │ └── modernFakeTimers.test.ts.snap │ │ │ ├── legacyFakeTimers.test.ts │ │ │ ├── modernFakeTimers.test.ts │ │ │ ├── sinon-integration.test.ts │ │ │ └── tsconfig.json │ │ ├── index.ts │ │ ├── legacyFakeTimers.ts │ │ └── modernFakeTimers.ts │ └── tsconfig.json ├── jest-get-type │ ├── .npmignore │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── getType.test.ts │ │ │ ├── isPrimitive.test.ts │ │ │ └── tsconfig.json │ │ └── index.ts │ └── tsconfig.json ├── jest-globals │ ├── .npmignore │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── index.ts │ │ │ └── tsconfig.json │ │ └── index.ts │ └── tsconfig.json ├── jest-haste-map │ ├── .npmignore │ ├── README.md │ ├── package.json │ ├── src │ │ ├── HasteFS.ts │ │ ├── ModuleMap.ts │ │ ├── __tests__ │ │ │ ├── __snapshots__ │ │ │ │ └── index.test.js.snap │ │ │ ├── dependencyExtractor.js │ │ │ ├── get_mock_name.test.js │ │ │ ├── haste_impl.js │ │ │ ├── includes_dotfiles.test.ts │ │ │ ├── index.test.js │ │ │ ├── test_dotfiles_root │ │ │ │ ├── .eslintrc.js │ │ │ │ └── index.js │ │ │ ├── tsconfig.json │ │ │ └── worker.test.js │ │ ├── blacklist.ts │ │ ├── constants.ts │ │ ├── crawlers │ │ │ ├── __tests__ │ │ │ │ ├── node.test.js │ │ │ │ ├── tsconfig.json │ │ │ │ └── watchman.test.js │ │ │ ├── node.ts │ │ │ └── watchman.ts │ │ ├── getMockName.ts │ │ ├── index.ts │ │ ├── lib │ │ │ ├── __tests__ │ │ │ │ ├── dependencyExtractor.test.js │ │ │ │ ├── fast_path.test.js │ │ │ │ ├── getPlatformExtension.test.js │ │ │ │ ├── isWatchmanInstalled.test.js │ │ │ │ ├── normalizePathSep.test.js │ │ │ │ └── tsconfig.json │ │ │ ├── dependencyExtractor.ts │ │ │ ├── fast_path.ts │ │ │ ├── getPlatformExtension.ts │ │ │ ├── isWatchmanInstalled.ts │ │ │ └── normalizePathSep.ts │ │ ├── types.ts │ │ ├── watchers │ │ │ ├── FSEventsWatcher.ts │ │ │ ├── NodeWatcher.js │ │ │ ├── RecrawlWarning.js │ │ │ ├── WatchmanWatcher.js │ │ │ └── common.js │ │ └── worker.ts │ └── tsconfig.json ├── jest-jasmine2 │ ├── .npmignore │ ├── package.json │ ├── src │ │ ├── ExpectationFailed.ts │ │ ├── PCancelable.ts │ │ ├── __tests__ │ │ │ ├── Suite.test.ts │ │ │ ├── __snapshots__ │ │ │ │ └── expectationResultFactory.test.ts.snap │ │ │ ├── concurrent.test.ts │ │ │ ├── expectationResultFactory.test.ts │ │ │ ├── hooksError.test.ts │ │ │ ├── itTestError.test.ts │ │ │ ├── itToTestAlias.test.ts │ │ │ ├── iterators.test.ts │ │ │ ├── pTimeout.test.ts │ │ │ ├── queueRunner.test.ts │ │ │ ├── reporter.test.ts │ │ │ ├── todoError.test.ts │ │ │ └── tsconfig.json │ │ ├── assertionErrorMessage.ts │ │ ├── each.ts │ │ ├── errorOnPrivate.ts │ │ ├── expectationResultFactory.ts │ │ ├── index.ts │ │ ├── isError.ts │ │ ├── jasmine │ │ │ ├── CallTracker.ts │ │ │ ├── Env.ts │ │ │ ├── JsApiReporter.ts │ │ │ ├── ReportDispatcher.ts │ │ │ ├── Spec.ts │ │ │ ├── SpyStrategy.ts │ │ │ ├── Suite.ts │ │ │ ├── Timer.ts │ │ │ ├── createSpy.ts │ │ │ ├── jasmineLight.ts │ │ │ └── spyRegistry.ts │ │ ├── jasmineAsyncInstall.ts │ │ ├── jestExpect.ts │ │ ├── pTimeout.ts │ │ ├── queueRunner.ts │ │ ├── reporter.ts │ │ ├── setup_jest_globals.ts │ │ ├── treeProcessor.ts │ │ └── types.ts │ └── tsconfig.json ├── jest-leak-detector │ ├── .npmignore │ ├── README.md │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── __snapshots__ │ │ │ │ └── index.test.ts.snap │ │ │ ├── index.test.ts │ │ │ └── tsconfig.json │ │ └── index.ts │ └── tsconfig.json ├── jest-matcher-utils │ ├── .npmignore │ ├── README.md │ ├── package.json │ ├── src │ │ ├── Replaceable.ts │ │ ├── __tests__ │ │ │ ├── Replaceable.test.ts │ │ │ ├── __snapshots__ │ │ │ │ ├── index.test.ts.snap │ │ │ │ └── printDiffOrStringify.test.ts.snap │ │ │ ├── deepCyclicCopyReplaceable.test.ts │ │ │ ├── deepCyclicCopyReplaceableDom.test.ts │ │ │ ├── index.test.ts │ │ │ ├── printDiffOrStringify.test.ts │ │ │ └── tsconfig.json │ │ ├── deepCyclicCopyReplaceable.ts │ │ └── index.ts │ └── tsconfig.json ├── jest-message-util │ ├── .npmignore │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── __snapshots__ │ │ │ │ └── messages.test.ts.snap │ │ │ ├── messages.test.ts │ │ │ └── tsconfig.json │ │ ├── index.ts │ │ └── types.ts │ └── tsconfig.json ├── jest-mock │ ├── .npmignore │ ├── README.md │ ├── __typetests__ │ │ ├── Mocked.test.ts │ │ ├── ModuleMocker.test.ts │ │ ├── mock-functions.test.ts │ │ ├── tsconfig.json │ │ └── utility-types.test.ts │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── __fixtures__ │ │ │ │ ├── SuperTestClass.ts │ │ │ │ ├── TestClass.ts │ │ │ │ └── class-mocks-types.ts │ │ │ ├── class-mocks-dual-import.test.ts │ │ │ ├── class-mocks-single-import.test.ts │ │ │ ├── class-mocks.test.ts │ │ │ ├── index.test.ts │ │ │ ├── tsconfig.json │ │ │ └── window-spy.test.ts │ │ └── index.ts │ └── tsconfig.json ├── jest-pattern │ ├── README.md │ ├── package.json │ ├── src │ │ ├── TestPathPatterns.ts │ │ ├── __tests__ │ │ │ ├── TestPathPatterns.test.ts │ │ │ └── __snapshots__ │ │ │ │ └── TestPathPatterns.test.ts.snap │ │ └── index.ts │ └── tsconfig.json ├── jest-phabricator │ ├── .npmignore │ ├── README.md │ ├── package.json │ ├── src │ │ └── index.ts │ └── tsconfig.json ├── jest-regex-util │ ├── .npmignore │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── index.test.ts │ │ │ └── tsconfig.json │ │ └── index.ts │ └── tsconfig.json ├── jest-repl │ ├── .npmignore │ ├── bin │ │ ├── jest-repl.js │ │ └── jest-runtime-cli.js │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── jest_repl.test.js │ │ │ ├── runtime_cli.test.js │ │ │ ├── test_root │ │ │ │ ├── logging.js │ │ │ │ └── throwing.js │ │ │ └── tsconfig.json │ │ ├── cli │ │ │ ├── args.ts │ │ │ ├── index.ts │ │ │ ├── repl.ts │ │ │ ├── runtime-cli.ts │ │ │ └── version.ts │ │ └── index.ts │ └── tsconfig.json ├── jest-reporters │ ├── .npmignore │ ├── __typetests__ │ │ ├── jest-reporters.test.ts │ │ └── tsconfig.json │ ├── assets │ │ └── jest_logo.png │ ├── package.json │ ├── src │ │ ├── BaseReporter.ts │ │ ├── CoverageReporter.ts │ │ ├── CoverageWorker.ts │ │ ├── DefaultReporter.ts │ │ ├── GitHubActionsReporter.ts │ │ ├── NotifyReporter.ts │ │ ├── Status.ts │ │ ├── SummaryReporter.ts │ │ ├── VerboseReporter.ts │ │ ├── __tests__ │ │ │ ├── CoverageReporter.test.js │ │ │ ├── CoverageWorker.test.js │ │ │ ├── DefaultReporter.test.js │ │ │ ├── GitHubActionsReporter.test.ts │ │ │ ├── NotifyReporter.test.ts │ │ │ ├── SummaryReporter.test.js │ │ │ ├── VerboseReporter.test.js │ │ │ ├── __snapshots__ │ │ │ │ ├── GitHubActionsReporter.test.ts.snap │ │ │ │ ├── NotifyReporter.test.ts.snap │ │ │ │ ├── SummaryReporter.test.js.snap │ │ │ │ ├── generateEmptyCoverage.test.js.snap │ │ │ │ ├── getSnapshotStatus.test.js.snap │ │ │ │ ├── getSnapshotSummary.test.js.snap │ │ │ │ ├── getSummary.test.ts.snap │ │ │ │ └── utils.test.ts.snap │ │ │ ├── generateEmptyCoverage.test.js │ │ │ ├── getResultHeader.test.js │ │ │ ├── getSnapshotStatus.test.js │ │ │ ├── getSnapshotSummary.test.js │ │ │ ├── getSummary.test.ts │ │ │ ├── getWatermarks.test.ts │ │ │ ├── tsconfig.json │ │ │ └── utils.test.ts │ │ ├── formatTestPath.ts │ │ ├── generateEmptyCoverage.ts │ │ ├── getResultHeader.ts │ │ ├── getSnapshotStatus.ts │ │ ├── getSnapshotSummary.ts │ │ ├── getSummary.ts │ │ ├── getWatermarks.ts │ │ ├── index.ts │ │ ├── printDisplayName.ts │ │ ├── relativePath.ts │ │ ├── trimAndFormatPath.ts │ │ ├── types.ts │ │ └── wrapAnsiString.ts │ └── tsconfig.json ├── jest-resolve-dependencies │ ├── .npmignore │ ├── __mocks__ │ │ └── fake-node-module.js │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── __fixtures__ │ │ │ │ ├── __snapshots__ │ │ │ │ │ └── related.test.js.snap │ │ │ │ ├── file.js │ │ │ │ ├── file.test.js │ │ │ │ ├── hasMocked │ │ │ │ │ ├── __mocks__ │ │ │ │ │ │ └── file.js │ │ │ │ │ ├── file.js │ │ │ │ │ └── file.test.js │ │ │ │ ├── node_modules │ │ │ │ │ └── @myorg │ │ │ │ │ │ └── pkg │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── package.json │ │ │ │ ├── related.test.js │ │ │ │ └── scoped.js │ │ │ ├── dependency_resolver.test.ts │ │ │ └── tsconfig.json │ │ └── index.ts │ └── tsconfig.json ├── jest-resolve │ ├── .npmignore │ ├── __typetests__ │ │ ├── resolver.test.ts │ │ └── tsconfig.json │ ├── package.json │ ├── src │ │ ├── ModuleNotFoundError.ts │ │ ├── __mocks__ │ │ │ ├── bar │ │ │ │ └── node_modules │ │ │ │ │ ├── bar │ │ │ │ │ └── index.js │ │ │ │ │ └── foo │ │ │ ├── conditions │ │ │ │ └── node_modules │ │ │ │ │ ├── exports │ │ │ │ │ ├── default.js │ │ │ │ │ ├── import.js │ │ │ │ │ ├── main.js │ │ │ │ │ ├── nestedDefault.js │ │ │ │ │ ├── nestedRequire.js │ │ │ │ │ ├── other.js │ │ │ │ │ ├── package.json │ │ │ │ │ ├── require.js │ │ │ │ │ └── some-other-directory │ │ │ │ │ │ └── file.js │ │ │ │ │ └── main │ │ │ │ │ ├── file.js │ │ │ │ │ └── package.json │ │ │ ├── foo.js │ │ │ ├── foo │ │ │ │ ├── bar │ │ │ │ │ └── index.js │ │ │ │ ├── foo.js │ │ │ │ ├── index.js │ │ │ │ └── node_modules │ │ │ │ │ ├── dep │ │ │ │ │ └── index.js │ │ │ │ │ └── foo │ │ │ │ │ └── index.js │ │ │ ├── imports │ │ │ │ ├── array-import │ │ │ │ │ ├── browser.cjs │ │ │ │ │ ├── chrome.cjs │ │ │ │ │ ├── node.mjs │ │ │ │ │ └── package.json │ │ │ │ ├── foo-import │ │ │ │ │ ├── internal.cjs │ │ │ │ │ ├── node_modules │ │ │ │ │ │ └── external-foo │ │ │ │ │ │ │ ├── main.js │ │ │ │ │ │ │ └── package.json │ │ │ │ │ └── package.json │ │ │ │ ├── nested-import │ │ │ │ │ ├── browser.cjs │ │ │ │ │ ├── esm.mjs │ │ │ │ │ ├── node.cjs │ │ │ │ │ └── package.json │ │ │ │ └── package.json │ │ │ ├── mockJsDependency.js │ │ │ ├── mockJsDependency.native.js │ │ │ ├── mockJsxDependency.jsx │ │ │ ├── mockJsxDependency.native.jsx │ │ │ ├── package.json │ │ │ ├── self-ref │ │ │ │ ├── foo │ │ │ │ │ ├── file.js │ │ │ │ │ ├── nested-with-no-exports │ │ │ │ │ │ ├── file.js │ │ │ │ │ │ └── package.json │ │ │ │ │ ├── nested-with-own-pkg │ │ │ │ │ │ ├── file.js │ │ │ │ │ │ └── package.json │ │ │ │ │ ├── nested │ │ │ │ │ │ └── file.js │ │ │ │ │ └── package.json │ │ │ │ └── package.json │ │ │ ├── userResolver.d.ts │ │ │ ├── userResolver.js │ │ │ ├── userResolverAsync.d.ts │ │ │ └── userResolverAsync.js │ │ ├── __tests__ │ │ │ ├── isBuiltinModule.test.ts │ │ │ ├── resolve.test.ts │ │ │ └── tsconfig.json │ │ ├── defaultResolver.ts │ │ ├── fileWalkers.ts │ │ ├── index.ts │ │ ├── isBuiltinModule.ts │ │ ├── nodeModulesPaths.ts │ │ ├── resolver.ts │ │ ├── shouldLoadAsEsm.ts │ │ ├── types.ts │ │ └── utils.ts │ └── tsconfig.json ├── jest-runner │ ├── .npmignore │ ├── __typetests__ │ │ ├── jest-runner.test.ts │ │ └── tsconfig.json │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── testRunner.test.ts │ │ │ └── tsconfig.json │ │ ├── index.ts │ │ ├── runTest.ts │ │ ├── testWorker.ts │ │ └── types.ts │ └── tsconfig.json ├── jest-runtime │ ├── .npmignore │ ├── package.json │ ├── src │ │ ├── __mocks__ │ │ │ └── createRuntime.js │ │ ├── __tests__ │ │ │ ├── NODE_PATH_dir │ │ │ │ ├── package.json │ │ │ │ └── regular_module_in_node_path.js │ │ │ ├── Runtime-sourceMaps.test.js │ │ │ ├── Runtime-statics.test.js │ │ │ ├── __snapshots__ │ │ │ │ └── runtime_require_module_no_ext.test.js.snap │ │ │ ├── defaultResolver.js │ │ │ ├── instrumentation.test.ts │ │ │ ├── module_dir │ │ │ │ ├── module_directory_file.js │ │ │ │ └── to_be_instrumented.js │ │ │ ├── runtime_create_mock_from_module.test.js │ │ │ ├── runtime_environment.test.js │ │ │ ├── runtime_internal_module.test.js │ │ │ ├── runtime_jest_fn.js │ │ │ ├── runtime_jest_replaceProperty.test.js │ │ │ ├── runtime_jest_spy_on.test.js │ │ │ ├── runtime_mock.test.js │ │ │ ├── runtime_module_directories.test.js │ │ │ ├── runtime_node_path.test.js │ │ │ ├── runtime_require_actual.test.js │ │ │ ├── runtime_require_cache.test.js │ │ │ ├── runtime_require_mock.test.js │ │ │ ├── runtime_require_module.test.js │ │ │ ├── runtime_require_module_no_ext.test.js │ │ │ ├── runtime_require_module_or_mock.test.js │ │ │ ├── runtime_require_module_or_mock_transitive_deps.test.js │ │ │ ├── runtime_require_resolve.test.ts │ │ │ ├── runtime_resetModules_unsafe_global_proxy.js │ │ │ ├── runtime_wrap.js │ │ │ ├── test_root │ │ │ │ ├── JSONFile.json │ │ │ │ ├── ManuallyMocked.js │ │ │ │ ├── ModuleWithSideEffects.js │ │ │ │ ├── ModuleWithState.js │ │ │ │ ├── MyDirectoryModule │ │ │ │ │ └── index.js │ │ │ │ ├── NativeModule.node │ │ │ │ ├── OnlyRequiredFromMock.js │ │ │ │ ├── RegularModule.js │ │ │ │ ├── RegularModuleWithWrongExt.txt │ │ │ │ ├── RelativeImageStub.js │ │ │ │ ├── RequireRegularModule.js │ │ │ │ ├── TestModuleNameMapperResolution.jsx │ │ │ │ ├── __mocks__ │ │ │ │ │ ├── ExclusivelyManualMock.js │ │ │ │ │ ├── ManuallyMocked.js │ │ │ │ │ ├── mocked-node-module.js │ │ │ │ │ └── nested1 │ │ │ │ │ │ └── nested2 │ │ │ │ │ │ └── nested3.js │ │ │ │ ├── create_require_module.js │ │ │ │ ├── dep_on_mapped_module.js │ │ │ │ ├── global_image_stub.js │ │ │ │ ├── haste-modules │ │ │ │ │ ├── Foo.react.js │ │ │ │ │ ├── FooContainer.react.js │ │ │ │ │ └── FooRenderUtil.js │ │ │ │ ├── haste-package │ │ │ │ │ ├── core │ │ │ │ │ │ └── module.js │ │ │ │ │ └── package.json │ │ │ │ ├── inner_parent_module.js │ │ │ │ ├── internal-module.js │ │ │ │ ├── internal-root.js │ │ │ │ ├── internal-root.json │ │ │ │ ├── mapped_dir │ │ │ │ │ └── moduleInMapped.js │ │ │ │ ├── mapped_module_createMockFromModule.js │ │ │ │ ├── mapped_module_test.js │ │ │ │ ├── module_dir │ │ │ │ │ ├── module_dir_module.js │ │ │ │ │ └── my-module │ │ │ │ │ │ ├── core.js │ │ │ │ │ │ └── package.json │ │ │ │ ├── modules_with_main │ │ │ │ │ ├── export_main.js │ │ │ │ │ └── re_export_main.js │ │ │ │ ├── nested1 │ │ │ │ │ └── nested2 │ │ │ │ │ │ └── nested3.js │ │ │ │ ├── node_modules │ │ │ │ │ ├── jest-resolve-test │ │ │ │ │ │ ├── browser.js │ │ │ │ │ │ ├── node.js │ │ │ │ │ │ └── package.json │ │ │ │ │ ├── mocked-node-module │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── module-needing-parent │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── node_modules │ │ │ │ │ │ │ └── parent-module │ │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── not-a-haste-package │ │ │ │ │ │ ├── core.js │ │ │ │ │ │ └── package.json │ │ │ │ │ ├── npm3-main-dep │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── npm3-transitive-dep │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── internal-code.js │ │ │ │ │ └── parent-module │ │ │ │ │ │ └── index.js │ │ │ │ ├── package.json │ │ │ │ ├── platform │ │ │ │ │ ├── Platform.android.js │ │ │ │ │ ├── Platform.ios.js │ │ │ │ │ ├── Platform.js │ │ │ │ │ └── Platform.native.js │ │ │ │ ├── require-by-name.js │ │ │ │ ├── resolve_and_require_outside.js │ │ │ │ ├── resolve_mapped.js │ │ │ │ ├── resolve_self.js │ │ │ │ ├── root.js │ │ │ │ ├── sourcemaps │ │ │ │ │ ├── out │ │ │ │ │ │ ├── throwing-mapped-fn.js │ │ │ │ │ │ └── throwing-mapped-fn.js.map │ │ │ │ │ └── throwing-mapped-fn.js │ │ │ │ ├── subdir2 │ │ │ │ │ └── module_dir │ │ │ │ │ │ ├── module_dir_module.js │ │ │ │ │ │ └── my-module │ │ │ │ │ │ └── core.js │ │ │ │ ├── test_json_preprocessor.js │ │ │ │ ├── test_preprocessor.js │ │ │ │ ├── throwing.js │ │ │ │ ├── throwing_fn.js │ │ │ │ ├── utf8_with_bom.js │ │ │ │ └── utf8_with_bom.json │ │ │ ├── test_root_with_dup_mocks │ │ │ │ ├── subdir1 │ │ │ │ │ ├── __mocks__ │ │ │ │ │ │ └── my_module.js │ │ │ │ │ └── my_module.js │ │ │ │ └── subdir2 │ │ │ │ │ ├── __mocks__ │ │ │ │ │ └── my_module.js │ │ │ │ │ ├── module_dir │ │ │ │ │ └── module_dir_module.js │ │ │ │ │ └── my_module.js │ │ │ └── tsconfig.json │ │ ├── helpers.ts │ │ └── index.ts │ └── tsconfig.json ├── jest-schemas │ ├── .npmignore │ ├── README.md │ ├── package.json │ ├── src │ │ ├── index.ts │ │ └── raw-types.ts │ └── tsconfig.json ├── jest-snapshot-utils │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ └── utils.test.ts │ │ ├── index.ts │ │ ├── types.ts │ │ └── utils.ts │ └── tsconfig.json ├── jest-snapshot │ ├── .npmignore │ ├── __typetests__ │ │ ├── SnapshotResolver.test.ts │ │ ├── matchers.test.ts │ │ └── tsconfig.json │ ├── package.json │ ├── src │ │ ├── InlineSnapshots.ts │ │ ├── SnapshotResolver.ts │ │ ├── State.ts │ │ ├── __tests__ │ │ │ ├── InlineSnapshots.test.ts │ │ │ ├── SnapshotResolver.test.ts │ │ │ ├── __snapshots__ │ │ │ │ ├── SnapshotResolver.test.ts.snap │ │ │ │ ├── mockSerializer.test.ts.snap │ │ │ │ └── printSnapshot.test.ts.snap │ │ │ ├── dedentLines.test.ts │ │ │ ├── fixtures │ │ │ │ ├── customSnapshotResolver-inconsistent-fns.js │ │ │ │ ├── customSnapshotResolver-missing-resolveSnapshotPath.js │ │ │ │ ├── customSnapshotResolver-missing-resolveTestPath.js │ │ │ │ ├── customSnapshotResolver-missing-test-path-for-consistency-check.js │ │ │ │ └── customSnapshotResolver.js │ │ │ ├── matcher.test.ts │ │ │ ├── mockSerializer.test.ts │ │ │ ├── plugins.test.ts │ │ │ ├── plugins │ │ │ │ ├── bar.js │ │ │ │ └── foo.js │ │ │ ├── printSnapshot.test.ts │ │ │ ├── throwMatcher.test.ts │ │ │ ├── tsconfig.json │ │ │ └── utils.test.ts │ │ ├── colors.ts │ │ ├── dedentLines.ts │ │ ├── index.ts │ │ ├── mockSerializer.ts │ │ ├── plugins.ts │ │ ├── printSnapshot.ts │ │ ├── types.ts │ │ ├── utils.ts │ │ └── worker.ts │ └── tsconfig.json ├── jest-source-map │ ├── .npmignore │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── getCallsite.test.ts │ │ │ └── tsconfig.json │ │ ├── getCallsite.ts │ │ ├── index.ts │ │ └── types.ts │ └── tsconfig.json ├── jest-test-result │ ├── .npmignore │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── formatTestResults.test.ts │ │ │ └── tsconfig.json │ │ ├── formatTestResults.ts │ │ ├── helpers.ts │ │ ├── index.ts │ │ └── types.ts │ └── tsconfig.json ├── jest-test-sequencer │ ├── .npmignore │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── test_sequencer.test.ts │ │ │ └── tsconfig.json │ │ └── index.ts │ └── tsconfig.json ├── jest-transform │ ├── .npmignore │ ├── package.json │ ├── src │ │ ├── ScriptTransformer.ts │ │ ├── __tests__ │ │ │ ├── ScriptTransformer.test.ts │ │ │ ├── __snapshots__ │ │ │ │ └── ScriptTransformer.test.ts.snap │ │ │ ├── shouldInstrument.test.ts │ │ │ └── tsconfig.json │ │ ├── enhanceUnexpectedTokenMessage.ts │ │ ├── index.ts │ │ ├── runtimeErrorsAndWarnings.ts │ │ ├── shouldInstrument.ts │ │ └── types.ts │ └── tsconfig.json ├── jest-types │ ├── .npmignore │ ├── README.md │ ├── __typetests__ │ │ ├── config.test.ts │ │ ├── each.test.ts │ │ ├── expect │ │ │ ├── base.test.ts │ │ │ ├── toHaveBeenCalledWith.test.ts │ │ │ ├── toHaveBeenLastCalledWith.test.ts │ │ │ └── toHaveBeenNthCalledWith.test.ts │ │ ├── globals.test.ts │ │ ├── jest.test.ts │ │ └── tsconfig.json │ ├── package.json │ ├── src │ │ ├── Circus.ts │ │ ├── Config.ts │ │ ├── Global.ts │ │ ├── TestResult.ts │ │ ├── Transform.ts │ │ └── index.ts │ └── tsconfig.json ├── jest-util │ ├── .npmignore │ ├── Readme.md │ ├── package.json │ ├── src │ │ ├── ErrorWithStack.ts │ │ ├── __tests__ │ │ │ ├── convertDescriptorToString.test.ts │ │ │ ├── createProcessObject.test.ts │ │ │ ├── deepCyclicCopy.test.ts │ │ │ ├── errorWithStack.test.ts │ │ │ ├── formatTime.test.ts │ │ │ ├── globsToMatcher.test.ts │ │ │ ├── installCommonGlobals.test.ts │ │ │ ├── isInteractive.test.ts │ │ │ ├── isPromise.test.ts │ │ │ └── tsconfig.json │ │ ├── clearLine.ts │ │ ├── convertDescriptorToString.ts │ │ ├── createDirectory.ts │ │ ├── createProcessObject.ts │ │ ├── deepCyclicCopy.ts │ │ ├── formatTime.ts │ │ ├── garbage-collection-utils.ts │ │ ├── globsToMatcher.ts │ │ ├── index.ts │ │ ├── installCommonGlobals.ts │ │ ├── interopRequireDefault.ts │ │ ├── invariant.ts │ │ ├── isInteractive.ts │ │ ├── isNonNullable.ts │ │ ├── isPromise.ts │ │ ├── pluralize.ts │ │ ├── preRunMessage.ts │ │ ├── replacePathSepForGlob.ts │ │ ├── requireOrImportModule.ts │ │ ├── setGlobal.ts │ │ ├── specialChars.ts │ │ └── tryRealpath.ts │ └── tsconfig.json ├── jest-validate │ ├── .npmignore │ ├── README.md │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── __fixtures__ │ │ │ │ └── jestConfig.ts │ │ │ ├── __snapshots__ │ │ │ │ ├── validate.test.ts.snap │ │ │ │ └── validateCLIOptions.test.ts.snap │ │ │ ├── tsconfig.json │ │ │ ├── validate.test.ts │ │ │ └── validateCLIOptions.test.ts │ │ ├── condition.ts │ │ ├── defaultConfig.ts │ │ ├── deprecated.ts │ │ ├── errors.ts │ │ ├── exampleConfig.ts │ │ ├── index.ts │ │ ├── types.ts │ │ ├── utils.ts │ │ ├── validate.ts │ │ ├── validateCLIOptions.ts │ │ └── warnings.ts │ └── tsconfig.json ├── jest-watcher │ ├── .npmignore │ ├── package.json │ ├── src │ │ ├── BaseWatchPlugin.ts │ │ ├── JestHooks.ts │ │ ├── PatternPrompt.ts │ │ ├── TestWatcher.ts │ │ ├── constants.ts │ │ ├── index.ts │ │ ├── lib │ │ │ ├── Prompt.ts │ │ │ ├── __tests__ │ │ │ │ ├── __snapshots__ │ │ │ │ │ └── formatTestNameByPattern.test.ts.snap │ │ │ │ ├── formatTestNameByPattern.test.ts │ │ │ │ ├── prompt.test.ts │ │ │ │ ├── scroll.test.ts │ │ │ │ └── tsconfig.json │ │ │ ├── colorize.ts │ │ │ ├── formatTestNameByPattern.ts │ │ │ ├── patternModeHelpers.ts │ │ │ └── scroll.ts │ │ └── types.ts │ └── tsconfig.json ├── jest-worker │ ├── .npmignore │ ├── README.md │ ├── __benchmarks__ │ │ ├── test.js │ │ └── workers │ │ │ ├── jest_worker.js │ │ │ ├── pi.js │ │ │ └── worker_farm.js │ ├── __typetests__ │ │ ├── jest-worker.test.ts │ │ ├── testWorker.ts │ │ └── tsconfig.json │ ├── package.json │ ├── src │ │ ├── Farm.ts │ │ ├── FifoQueue.ts │ │ ├── PriorityQueue.ts │ │ ├── WorkerPool.ts │ │ ├── __tests__ │ │ │ ├── Farm.test.ts │ │ │ ├── FifoQueue.test.ts │ │ │ ├── PriorityQueue.test.ts │ │ │ ├── WorkerPool.test.ts │ │ │ ├── index.test.ts │ │ │ ├── leak-integration.test.ts │ │ │ ├── process-integration.test.ts │ │ │ ├── thread-integration.test.ts │ │ │ └── tsconfig.json │ │ ├── base │ │ │ ├── BaseWorkerPool.ts │ │ │ └── __tests__ │ │ │ │ ├── BaseWorkerPool.test.ts │ │ │ │ └── tsconfig.json │ │ ├── index.ts │ │ ├── types.ts │ │ └── workers │ │ │ ├── ChildProcessWorker.ts │ │ │ ├── NodeThreadsWorker.ts │ │ │ ├── WorkerAbstract.ts │ │ │ ├── __tests__ │ │ │ ├── ChildProcessWorker.test.ts │ │ │ ├── NodeThreadsWorker.test.ts │ │ │ ├── WorkerEdgeCases.test.ts │ │ │ ├── __fixtures__ │ │ │ │ ├── EdgeCasesWorker.js │ │ │ │ └── SelfKillWorker.js │ │ │ ├── processChild.test.ts │ │ │ ├── threadChild.test.ts │ │ │ └── tsconfig.json │ │ │ ├── isDataCloneError.ts │ │ │ ├── messageParent.ts │ │ │ ├── processChild.ts │ │ │ ├── safeMessageTransferring.ts │ │ │ └── threadChild.ts │ └── tsconfig.json ├── jest │ ├── .npmignore │ ├── README.md │ ├── __typetests__ │ │ ├── jest.test.ts │ │ └── tsconfig.json │ ├── bin │ │ └── jest.js │ ├── package.json │ ├── src │ │ └── index.ts │ └── tsconfig.json ├── pretty-format │ ├── .npmignore │ ├── README.md │ ├── __benchmarks__ │ │ ├── test.js │ │ └── world.geo.json │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── AsymmetricMatcher.test.ts │ │ │ ├── DOMCollection.test.ts │ │ │ ├── DOMElement.test.ts │ │ │ ├── Immutable.test.ts │ │ │ ├── ReactElement.test.ts │ │ │ ├── __snapshots__ │ │ │ │ └── react.test.tsx.snap │ │ │ ├── prettyFormat.test.ts │ │ │ ├── react.test.tsx │ │ │ ├── setPrettyPrint.ts │ │ │ └── tsconfig.json │ │ ├── collections.ts │ │ ├── index.ts │ │ ├── plugins │ │ │ ├── AsymmetricMatcher.ts │ │ │ ├── DOMCollection.ts │ │ │ ├── DOMElement.ts │ │ │ ├── Immutable.ts │ │ │ ├── ReactElement.ts │ │ │ ├── ReactTestComponent.ts │ │ │ └── lib │ │ │ │ ├── escapeHTML.ts │ │ │ │ └── markup.ts │ │ └── types.ts │ └── tsconfig.json ├── test-globals │ ├── README.md │ ├── package.json │ ├── src │ │ └── index.ts │ └── tsconfig.json └── test-utils │ ├── README.md │ ├── package.json │ ├── src │ ├── ConditionalTest.ts │ ├── alignedAnsiStyleSerializer.ts │ ├── config.ts │ ├── index.ts │ └── normalizeIcons.ts │ └── tsconfig.json ├── scripts ├── babel-plugin-jest-native-globals.js ├── babel-plugin-jest-replace-ts-require-assignment.js ├── babel-plugin-jest-require-outside-vm.js ├── build.mjs ├── buildTs.mjs ├── buildUtils.mjs ├── bundleTs.mjs ├── checkChangelog.mjs ├── checkCopyrightHeaders.mjs ├── cleanE2e.mjs ├── lintTs.mjs ├── mapCoverage.mjs ├── remove-examples.mjs ├── verifyOldTs.mjs ├── verifyPnP.mjs └── watch.mjs ├── tsconfig.json ├── tsconfig.test.json ├── tsconfig.typetest.json ├── tstyche.config.json ├── website ├── .vscode │ └── settings.json ├── README.md ├── archivedVersions.json ├── babel.config.js ├── blog │ ├── 2016-03-11-javascript-unit-testing-performance.md │ ├── 2016-04-12-jest-11.md │ ├── 2016-06-22-jest-13.md │ ├── 2016-07-27-jest-14.md │ ├── 2016-09-01-jest-15.md │ ├── 2016-10-03-jest-16.md │ ├── 2016-12-15-2016-in-jest.md │ ├── 2017-01-30-a-great-developer-experience.md │ ├── 2017-02-21-jest-19-immersive-watch-mode-test-platform-improvements.md │ ├── 2017-05-06-jest-20-delightful-testing-multi-project-runner.md │ ├── 2017-12-18-jest-22.md │ ├── 2018-05-29-jest-23-blazing-fast-delightful-testing.md │ ├── 2018-06-27-supporting-jest-open-source.md │ ├── 2019-01-25-jest-24-refreshing-polished-typescript-friendly.md │ ├── 2020-01-21-jest-25.md │ ├── 2020-05-05-jest-26.md │ ├── 2021-03-09-jest-website-upgrade.md │ ├── 2021-05-25-jest-27.md │ ├── 2022-04-25-jest-28.md │ ├── 2022-05-11-jest-joins-openjs.md │ ├── 2022-08-25-jest-29.md │ └── authors.yml ├── docusaurus.config.js ├── fetchSupporters.js ├── i18n.js ├── package.json ├── sidebars.json ├── src │ ├── components │ │ └── v1 │ │ │ ├── Container.js │ │ │ ├── GridBlock.js │ │ │ ├── MarkdownBlock.js │ │ │ └── legacyCSS.css │ ├── css │ │ ├── algoliaDocSearchTheme.css │ │ └── docusaurusTheme.css │ ├── pages │ │ ├── animations │ │ │ └── _landingAnimation.js │ │ ├── help.js │ │ ├── index.js │ │ ├── index.module.css │ │ └── versions.js │ └── prism │ │ ├── themeDark.js │ │ └── themeLight.js ├── static │ ├── .nojekyll │ ├── CNAME │ ├── _redirects │ ├── css │ │ ├── custom.css │ │ └── jest.css │ ├── img │ │ ├── blog │ │ │ ├── 15-console.png │ │ │ ├── 15-failure1.png │ │ │ ├── 15-failure2.png │ │ │ ├── 15-watch.gif │ │ │ ├── 16-reporter.gif │ │ │ ├── 16-snapshots.png │ │ │ ├── 16-watch.gif │ │ │ ├── 19-asymmetric-matchers.png │ │ │ ├── 19-cli-error.png │ │ │ ├── 19-skipped-tests.png │ │ │ ├── 19-snapshot-version.png │ │ │ ├── 19-validate.png │ │ │ ├── 20-multi-runner.gif │ │ │ ├── 20-testing-apis.png │ │ │ ├── 22-community.png │ │ │ ├── 22-failure-21.png │ │ │ ├── 22-failure-22.png │ │ │ ├── 23-asymmetric-matchers.png │ │ │ ├── 23-async-matchers.png │ │ │ ├── 23-hanging-after.png │ │ │ ├── 23-hanging-before.png │ │ │ ├── 23-interactive.gif │ │ │ ├── 23-jest-each.png │ │ │ ├── 23-new-matchers.png │ │ │ ├── 23-snapshot-matchers.png │ │ │ ├── 23-typeahead.gif │ │ │ ├── 24-assertion-error.png │ │ │ ├── 24-different-types.png │ │ │ ├── 24-mock-function.png │ │ │ ├── 24-todo.png │ │ │ ├── 25-snapshot-change-lines.png │ │ │ ├── 25-snapshot-change-substrings.png │ │ │ ├── 25-snapshot-insert-lines.png │ │ │ ├── 27-interactive-failures.png │ │ │ ├── 28-gh-actions-reporter.png │ │ │ ├── Scheduling1.png │ │ │ ├── Scheduling2.png │ │ │ ├── collective.png │ │ │ ├── openjs.png │ │ │ └── snapshot.png │ │ ├── circus.png │ │ ├── content │ │ │ ├── camera-with-flash.png │ │ │ ├── failedSnapshotTest.png │ │ │ ├── feature-coverage.png │ │ │ ├── feature-fast.png │ │ │ ├── feature-mocking.png │ │ │ ├── female-technologist.png │ │ │ ├── interactiveSnapshot.png │ │ │ ├── interactiveSnapshotDone.png │ │ │ ├── interactiveSnapshotUpdate.gif │ │ │ ├── joker.png │ │ │ ├── matchers │ │ │ │ ├── toBe.png │ │ │ │ ├── toBeCloseTo.png │ │ │ │ ├── toEqual.png │ │ │ │ ├── toHaveProperty.png │ │ │ │ ├── toMatchSnapshot.png │ │ │ │ ├── toStrictEqual.png │ │ │ │ └── toThrowError.png │ │ │ └── runner.png │ │ ├── favicon.png │ │ ├── favicon │ │ │ ├── android-chrome-192x192.png │ │ │ ├── android-chrome-512x512.png │ │ │ ├── apple-touch-icon.png │ │ │ ├── browserconfig.xml │ │ │ ├── favicon-16x16.png │ │ │ ├── favicon-32x32.png │ │ │ ├── favicon.ico │ │ │ ├── manifest.json │ │ │ ├── mstile-144x144.png │ │ │ ├── mstile-150x150.png │ │ │ ├── mstile-310x150.png │ │ │ ├── mstile-310x310.png │ │ │ ├── mstile-70x70.png │ │ │ └── safari-pinned-tab.svg │ │ ├── jest-badge.svg │ │ ├── jest-card-fail.svg │ │ ├── jest-card-pass.svg │ │ ├── jest-card-run.svg │ │ ├── jest-outline.svg │ │ ├── jest-readme-headline.png │ │ ├── jest.png │ │ ├── jest.svg │ │ ├── language.svg │ │ ├── logos │ │ │ ├── airbnb.png │ │ │ ├── facebook.png │ │ │ ├── ibm.png │ │ │ ├── instagram.png │ │ │ ├── nyt.png │ │ │ ├── paypal.png │ │ │ ├── pinterest.png │ │ │ ├── spotify.png │ │ │ └── twitter.png │ │ ├── opengraph.png │ │ ├── openjs_foundation-logo-horizontal-color-dark_background.svg │ │ └── running-card-background.png │ └── manifest.json ├── tsconfig.json ├── users.json ├── versioned_docs │ ├── version-29.4 │ │ ├── Architecture.md │ │ ├── BypassingModuleMocks.md │ │ ├── CLI.md │ │ ├── CodeTransformation.md │ │ ├── Configuration.md │ │ ├── DynamoDB.md │ │ ├── ECMAScriptModules.md │ │ ├── EnvironmentVariables.md │ │ ├── Es6ClassMocks.md │ │ ├── ExpectAPI.md │ │ ├── GettingStarted.md │ │ ├── GlobalAPI.md │ │ ├── JestCommunity.md │ │ ├── JestObjectAPI.md │ │ ├── JestPlatform.md │ │ ├── ManualMocks.md │ │ ├── MigrationGuide.md │ │ ├── MockFunctionAPI.md │ │ ├── MockFunctions.md │ │ ├── MongoDB.md │ │ ├── MoreResources.md │ │ ├── Puppeteer.md │ │ ├── SetupAndTeardown.md │ │ ├── SnapshotTesting.md │ │ ├── TestingAsyncCode.md │ │ ├── TestingFrameworks.md │ │ ├── TimerMocks.md │ │ ├── Troubleshooting.md │ │ ├── TutorialAsync.md │ │ ├── TutorialReact.md │ │ ├── TutorialReactNative.md │ │ ├── TutorialjQuery.md │ │ ├── UpgradingToJest29.md │ │ ├── UsingMatchers.md │ │ ├── WatchPlugins.md │ │ ├── Webpack.md │ │ └── _TypeScriptExamplesNote.md │ ├── version-29.5 │ │ ├── Architecture.md │ │ ├── BypassingModuleMocks.md │ │ ├── CLI.md │ │ ├── CodeTransformation.md │ │ ├── Configuration.md │ │ ├── DynamoDB.md │ │ ├── ECMAScriptModules.md │ │ ├── EnvironmentVariables.md │ │ ├── Es6ClassMocks.md │ │ ├── ExpectAPI.md │ │ ├── GettingStarted.md │ │ ├── GlobalAPI.md │ │ ├── JestCommunity.md │ │ ├── JestObjectAPI.md │ │ ├── JestPlatform.md │ │ ├── ManualMocks.md │ │ ├── MigrationGuide.md │ │ ├── MockFunctionAPI.md │ │ ├── MockFunctions.md │ │ ├── MongoDB.md │ │ ├── MoreResources.md │ │ ├── Puppeteer.md │ │ ├── SetupAndTeardown.md │ │ ├── SnapshotTesting.md │ │ ├── TestingAsyncCode.md │ │ ├── TestingFrameworks.md │ │ ├── TimerMocks.md │ │ ├── Troubleshooting.md │ │ ├── TutorialAsync.md │ │ ├── TutorialReact.md │ │ ├── TutorialReactNative.md │ │ ├── TutorialjQuery.md │ │ ├── UpgradingToJest29.md │ │ ├── UsingMatchers.md │ │ ├── WatchPlugins.md │ │ ├── Webpack.md │ │ └── _TypeScriptExamplesNote.md │ ├── version-29.6 │ │ ├── Architecture.md │ │ ├── BypassingModuleMocks.md │ │ ├── CLI.md │ │ ├── CodeTransformation.md │ │ ├── Configuration.md │ │ ├── DynamoDB.md │ │ ├── ECMAScriptModules.md │ │ ├── EnvironmentVariables.md │ │ ├── Es6ClassMocks.md │ │ ├── ExpectAPI.md │ │ ├── GettingStarted.md │ │ ├── GlobalAPI.md │ │ ├── JestCommunity.md │ │ ├── JestObjectAPI.md │ │ ├── JestPlatform.md │ │ ├── ManualMocks.md │ │ ├── MigrationGuide.md │ │ ├── MockFunctionAPI.md │ │ ├── MockFunctions.md │ │ ├── MongoDB.md │ │ ├── MoreResources.md │ │ ├── Puppeteer.md │ │ ├── SetupAndTeardown.md │ │ ├── SnapshotTesting.md │ │ ├── TestingAsyncCode.md │ │ ├── TestingFrameworks.md │ │ ├── TimerMocks.md │ │ ├── Troubleshooting.md │ │ ├── TutorialAsync.md │ │ ├── TutorialReact.md │ │ ├── TutorialReactNative.md │ │ ├── TutorialjQuery.md │ │ ├── UpgradingToJest29.md │ │ ├── UsingMatchers.md │ │ ├── WatchPlugins.md │ │ ├── Webpack.md │ │ └── _TypeScriptExamplesNote.md │ └── version-29.7 │ │ ├── Architecture.md │ │ ├── BypassingModuleMocks.md │ │ ├── CLI.md │ │ ├── CodeTransformation.md │ │ ├── Configuration.md │ │ ├── DynamoDB.md │ │ ├── ECMAScriptModules.md │ │ ├── EnvironmentVariables.md │ │ ├── Es6ClassMocks.md │ │ ├── ExpectAPI.md │ │ ├── GettingStarted.md │ │ ├── GlobalAPI.md │ │ ├── JestCommunity.md │ │ ├── JestObjectAPI.md │ │ ├── JestPlatform.md │ │ ├── ManualMocks.md │ │ ├── MigrationGuide.md │ │ ├── MockFunctionAPI.md │ │ ├── MockFunctions.md │ │ ├── MongoDB.md │ │ ├── MoreResources.md │ │ ├── Puppeteer.md │ │ ├── SetupAndTeardown.md │ │ ├── SnapshotTesting.md │ │ ├── TestingAsyncCode.md │ │ ├── TestingFrameworks.md │ │ ├── TimerMocks.md │ │ ├── Troubleshooting.md │ │ ├── TutorialAsync.md │ │ ├── TutorialReact.md │ │ ├── TutorialReactNative.md │ │ ├── TutorialjQuery.md │ │ ├── UpgradingToJest29.md │ │ ├── UsingMatchers.md │ │ ├── WatchPlugins.md │ │ ├── Webpack.md │ │ └── _TypeScriptExamplesNote.md ├── versioned_sidebars │ ├── version-29.4-sidebars.json │ ├── version-29.5-sidebars.json │ ├── version-29.6-sidebars.json │ └── version-29.7-sidebars.json └── versions.json └── yarn.lock /.codecov.yml: -------------------------------------------------------------------------------- 1 | codecov: 2 | require_ci_to_pass: false 3 | 4 | comment: false 5 | 6 | coverage: 7 | status: 8 | patch: 9 | default: 10 | target: auto 11 | project: 12 | default: 13 | target: auto 14 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | open_collective: jest 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | -------------------------------------------------------------------------------- /.gitpod.yml: -------------------------------------------------------------------------------- 1 | # Commands to start on workspace startup. See https://www.gitpod.io/docs/config-gitpod-file 2 | tasks: 3 | - init: yarn install && yarn run build 4 | command: yarn run watch 5 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | 3 | Jest is an OpenJS Foundation project and subscribes to its code of conduct. 4 | 5 | It is available at https://code-of-conduct.openjsf.org/. 6 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | ## Reporting a Vulnerability 2 | 3 | If you discover a security vulnerability within Jest, please submit a report via the GitHub's [Private Vulnerability Reporting](https://github.com/jestjs/jest/security/advisories) feature. 4 | 5 | All security vulnerabilities will be promptly addressed. 6 | -------------------------------------------------------------------------------- /benchmarks/test-file-overhead/.gitignore: -------------------------------------------------------------------------------- 1 | [1-9]*.test.js 2 | -------------------------------------------------------------------------------- /benchmarks/test-file-overhead/0.test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | it('is fast', () => {}); 9 | -------------------------------------------------------------------------------- /benchmarks/test-file-overhead/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /benchmarks/test-file-overhead/prepare.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | for i in {1..499}; do 3 | cp 0.test.js $i.test.js 4 | done 5 | -------------------------------------------------------------------------------- /e2e/__tests__/__snapshots__/executeTestsOnceInMpr.ts.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing 2 | 3 | exports[`Tests are executed only once even in an MPR 1`] = ` 4 | "PASS foo/folder/my-test-bar.js 5 | ✓ bar" 6 | `; 7 | -------------------------------------------------------------------------------- /e2e/auto-clear-mocks/with-auto-clear/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = () => {}; 9 | -------------------------------------------------------------------------------- /e2e/auto-clear-mocks/with-auto-clear/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "clearMocks": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/auto-clear-mocks/without-auto-clear/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/auto-reset-mocks/with-auto-reset/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = () => {}; 9 | -------------------------------------------------------------------------------- /e2e/auto-reset-mocks/with-auto-reset/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "resetMocks": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/auto-reset-mocks/without-auto-reset/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = () => {}; 9 | -------------------------------------------------------------------------------- /e2e/auto-reset-mocks/without-auto-reset/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/auto-restore-mocks/with-auto-restore/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "restoreMocks": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/auto-restore-mocks/without-auto-restore/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/babel-plugin-jest-hoist/__test_modules__/a.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export default () => 'unmocked'; 9 | -------------------------------------------------------------------------------- /e2e/babel-plugin-jest-hoist/__test_modules__/b.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export default () => 'unmocked'; 9 | -------------------------------------------------------------------------------- /e2e/babel-plugin-jest-hoist/__test_modules__/c.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export default () => 'unmocked'; 9 | -------------------------------------------------------------------------------- /e2e/babel-plugin-jest-hoist/__test_modules__/d.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export default () => 'unmocked'; 9 | -------------------------------------------------------------------------------- /e2e/babel-plugin-jest-hoist/__test_modules__/e.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export default () => 'unmocked'; 9 | -------------------------------------------------------------------------------- /e2e/babel-plugin-jest-hoist/__test_modules__/f.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export default () => 'unmocked'; 9 | -------------------------------------------------------------------------------- /e2e/babel-plugin-jest-hoist/__test_modules__/g.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export default () => 'unmocked'; 9 | -------------------------------------------------------------------------------- /e2e/babel-plugin-jest-hoist/banana.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = 'banana'; 9 | -------------------------------------------------------------------------------- /e2e/babel-plugin-jest-hoist/types.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export type Color = 'red' | 'blue'; 9 | -------------------------------------------------------------------------------- /e2e/bad-source-map/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/before-all-filtered/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testNamePattern": "test_1" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/before-all-skipped/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/before-each-queue/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /e2e/browser-resolver/fake-pkg/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fake-pkg", 3 | "version": "1.0.0", 4 | "main": "./nope.js", 5 | "browser": { 6 | "./nope.js": "./main.js" 7 | }, 8 | "dependencies": {} 9 | } 10 | -------------------------------------------------------------------------------- /e2e/browser-resolver/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "resolver": "/resolver.js", 4 | "testEnvironment": "jsdom" 5 | }, 6 | "dependencies": { 7 | "browser-resolve": "^2.0.0" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /e2e/call-done-twice/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/chai-assertion-library-errors/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "verbose": false 5 | }, 6 | "dependencies": { 7 | "chai": "^4.2.0" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /e2e/circus-concurrent/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/circus-declaration-errors/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/clear-cache/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/compare-dom-nodes/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "automock": true, 4 | "testEnvironment": "jsdom" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/config-override/different-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "displayName": "Config from different-config.json file" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/config-override/jest.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "displayName": "Config from json file" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/config-override/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "config-override" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/console-after-teardown/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "verbose": false 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/console-debugging/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /e2e/console-jsdom/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "jsdom" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/console-winston/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "verbose": false 5 | }, 6 | "dependencies": { 7 | "winston": "^3.2.1" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /e2e/console/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "verbose": false 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/coverage-provider-v8/cjs-native-without-sourcemap/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "collectCoverageFrom": [ 4 | "/*.js" 5 | ], 6 | "transform": {} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/coverage-provider-v8/cjs-with-babel-transformer/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "collectCoverageFrom": [ 4 | "/*.ts" 5 | ] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /e2e/coverage-provider-v8/cjs-with-babel-transformer/types.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export type A = string; 9 | -------------------------------------------------------------------------------- /e2e/coverage-provider-v8/cjs-with-babel-transformer/uncovered.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export {}; 9 | -------------------------------------------------------------------------------- /e2e/coverage-provider-v8/empty-sourcemap/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "empty-sourcemap", 3 | "version": "1.0.0", 4 | "jest": { 5 | "testEnvironment": "node" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /e2e/coverage-provider-v8/esm-native-without-sourcemap/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module", 3 | "jest": { 4 | "collectCoverageFrom": [ 5 | "/*.js" 6 | ], 7 | "transform": {} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /e2e/coverage-provider-v8/esm-native-without-sourcemap/uncovered.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export {}; 9 | -------------------------------------------------------------------------------- /e2e/coverage-provider-v8/esm-with-custom-transformer/uncovered.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export {}; 9 | -------------------------------------------------------------------------------- /e2e/coverage-provider-v8/no-sourcemap/x.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/e2e/coverage-provider-v8/no-sourcemap/x.css -------------------------------------------------------------------------------- /e2e/coverage-provider-v8/with-resetModules/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "collectCoverageFrom": [ 4 | "*.js" 5 | ], 6 | "resetModules": true 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/coverage-provider-v8/with-resetModules/uncovered.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = {}; 9 | -------------------------------------------------------------------------------- /e2e/coverage-remapping/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "rootDir": "./", 4 | "transform": { 5 | "\\.(ts|js)$": "/typescriptPreprocessor.js" 6 | }, 7 | "testEnvironment": "node" 8 | }, 9 | "dependencies": { 10 | "typescript": "^5.0.0" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /e2e/coverage-report/.gitignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | -------------------------------------------------------------------------------- /e2e/coverage-report/file.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = {a: 4}; 9 | -------------------------------------------------------------------------------- /e2e/coverage-report/otherFile.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = {a: 5}; 9 | -------------------------------------------------------------------------------- /e2e/coverage-report/setup.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | globalThis.setup = true; 9 | -------------------------------------------------------------------------------- /e2e/coverage-without-transform/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "collectCoverageFrom": [ 4 | "*.js" 5 | ], 6 | "transform": {}, 7 | "testEnvironment": "node" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /e2e/create-process-object/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "globalSetup": "/setup.js" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/custom-esm-test-sequencer/a.test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | test('a', () => {}); 8 | -------------------------------------------------------------------------------- /e2e/custom-esm-test-sequencer/b.test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | test('b', () => {}); 8 | -------------------------------------------------------------------------------- /e2e/custom-esm-test-sequencer/c.test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | test('c', () => {}); 8 | -------------------------------------------------------------------------------- /e2e/custom-esm-test-sequencer/d.test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | test('d', () => {}); 8 | -------------------------------------------------------------------------------- /e2e/custom-esm-test-sequencer/e.test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | test('e', () => {}); 8 | -------------------------------------------------------------------------------- /e2e/custom-esm-test-sequencer/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module", 3 | "jest": { 4 | "testEnvironment": "node", 5 | "transform": {}, 6 | "testSequencer": "/testSequencer.mjs" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/custom-haste-map/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "haste": { 4 | "hasteMapModulePath": "/hasteMap.js" 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /e2e/custom-inline-snapshot-matchers/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/custom-matcher-stack-trace/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/custom-resolver/__mocks__/manualMock.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = require('bar'); 9 | -------------------------------------------------------------------------------- /e2e/custom-resolver/bar.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = 'bar'; 9 | -------------------------------------------------------------------------------- /e2e/custom-resolver/foo.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = () => {}; 9 | -------------------------------------------------------------------------------- /e2e/custom-resolver/manualMock.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | throw new Error('Must be mocked'); 9 | -------------------------------------------------------------------------------- /e2e/custom-resolver/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "custom-resolver", 3 | "jest": { 4 | "globalSetup": "foo", 5 | "resolver": "./resolver.js", 6 | "transformIgnorePatterns": [ 7 | "/node_modules/", 8 | "/packages/" 9 | ] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /e2e/custom-test-sequencer/a.test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | test('a', () => {}); 8 | -------------------------------------------------------------------------------- /e2e/custom-test-sequencer/b.test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | test('b', () => {}); 8 | -------------------------------------------------------------------------------- /e2e/custom-test-sequencer/c.test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | test('c', () => {}); 8 | -------------------------------------------------------------------------------- /e2e/custom-test-sequencer/d.test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | test('d', () => {}); 8 | -------------------------------------------------------------------------------- /e2e/custom-test-sequencer/e.test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | test('e', () => {}); 8 | -------------------------------------------------------------------------------- /e2e/custom-test-sequencer/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/declaration-errors/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/detect-open-handles/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/dom-diffing/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "jsdom" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/done-in-hooks/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/dynamic-require-dependencies/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "moduleNameMapper": { 4 | "^\\$asdf/(.*)$": "/$1" 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /e2e/dynamic-require-dependencies/source.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = 1; 9 | -------------------------------------------------------------------------------- /e2e/each/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/empty-describe-with-hooks/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/empty-suite-error/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/env-test/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/environment-after-teardown/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/environmentOptions/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "jsdom" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/error-on-deprecated/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/esm-config/cjs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cjs-config" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/esm-config/js/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/esm-config/mjs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mjs-config" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/esm-config/ts/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/expect-async-matcher/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | }, 5 | "devDependencies": { 6 | "@babel/preset-flow": "^7.0.0" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/expect-in-vm/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/explicit-resource-management/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | }, 5 | "dependencies": { 6 | "@babel/plugin-proposal-explicit-resource-management": "^7.23.9" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/failureDetails-property/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "reporters": [ 5 | "/myreporter.js" 6 | ] 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/failures/__tests__/__snapshots__/snapshot.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing 2 | 3 | exports[`failing snapshot 1`] = `"bar"`; 4 | -------------------------------------------------------------------------------- /e2e/failures/__tests__/__snapshots__/snapshotWithHint.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing 2 | 3 | exports[`failing snapshot with hint: descriptive hint 1`] = `"bar"`; 4 | -------------------------------------------------------------------------------- /e2e/failures/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | }, 5 | "devDependencies": { 6 | "@babel/preset-flow": "^7.0.0" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/fake-promises/asap/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "fakeTimers": { 4 | "enableGlobally": true 5 | }, 6 | "setupFiles": [ 7 | "/fake-promises" 8 | ] 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /e2e/fake-promises/immediate/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "fakeTimers": { 4 | "enableGlobally": true 5 | }, 6 | "setupFiles": [ 7 | "/fake-promises" 8 | ] 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /e2e/fake-timers-legacy/enable-globally/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "enable-globally-legacy", 3 | "jest": { 4 | "fakeTimers": { 5 | "enableGlobally": true, 6 | "legacyFakeTimers": true 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /e2e/fake-timers-legacy/enable-legacy-fake-timers/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "enable-legacy-fake-timers", 3 | "jest": { 4 | "fakeTimers": { 5 | "legacyFakeTimers": true 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/fake-timers-legacy/request-animation-frame/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "request-animation-frame-legacy", 3 | "jest": { 4 | "testEnvironment": "jsdom" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/fake-timers-legacy/reset-all-mocks/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "reset-all-mocks", 3 | "jest": { 4 | "fakeTimers": { 5 | "legacyFakeTimers": true 6 | }, 7 | "resetMocks": false 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /e2e/fake-timers-legacy/reset-mocks/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "reset-mocks", 3 | "jest": { 4 | "fakeTimers": { 5 | "enableGlobally": true, 6 | "legacyFakeTimers": true 7 | }, 8 | "resetMocks": true 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /e2e/fake-timers-legacy/set-immediate/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "set-immediate-legacy", 3 | "jest": { 4 | "fakeTimers": { 5 | "enableGlobally": true, 6 | "legacyFakeTimers": true 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /e2e/fake-timers-legacy/use-fake-timers/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "use-fake-timers-legacy" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/fake-timers-legacy/use-legacy-fake-timers/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "use-legacy-fake-timers" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/fake-timers-legacy/use-real-timers/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "use-real-timers-legacy", 3 | "jest": { 4 | "fakeTimers": { 5 | "enableGlobally": true, 6 | "legacyFakeTimers": true 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /e2e/fake-timers/advance-timers/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "advance-timers" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/fake-timers/clear-real-timers/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "clear-real-timers" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/fake-timers/do-not-fake/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "do-not-fake", 3 | "jest": { 4 | "testEnvironment": "jsdom" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/fake-timers/enable-globally/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "enable-globally", 3 | "jest": { 4 | "fakeTimers": { 5 | "enableGlobally": true 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/fake-timers/request-animation-frame/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "request-animation-frame", 3 | "jest": { 4 | "testEnvironment": "jsdom" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/fake-timers/set-immediate/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "set-immediate", 3 | "jest": { 4 | "fakeTimers": { 5 | "enableGlobally": true 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/fake-timers/timer-limit/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "timer-limit", 3 | "jest": { 4 | "fakeTimers": { 5 | "enableGlobally": true, 6 | "timerLimit": 10 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /e2e/fake-timers/use-fake-timers/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "use-fake-timers" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/fake-timers/use-real-timers/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "use-real-timers", 3 | "jest": { 4 | "fakeTimers": { 5 | "enableGlobally": true 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/filter/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "filter": "/my-filter.js" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/focused-tests/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /e2e/generator-mock/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/global-setup-custom-transform/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = 'hello!'; 9 | -------------------------------------------------------------------------------- /e2e/global-setup-custom-transform/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "globalSetup": "/setup.js", 5 | "transform": { 6 | "\\.js$": "/transformer.js" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /e2e/global-setup-esm/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export default 'hello!'; 9 | -------------------------------------------------------------------------------- /e2e/global-setup-esm/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module", 3 | "jest": { 4 | "testEnvironment": "node", 5 | "globalSetup": "/setup.js", 6 | "transform": {} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/global-setup-node-modules/.gitignore: -------------------------------------------------------------------------------- 1 | !node_modules 2 | -------------------------------------------------------------------------------- /e2e/global-setup-node-modules/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "globalSetup": "/setup.js", 5 | "transformIgnorePatterns": [] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /e2e/global-setup/custom-tests-dir/pass.test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | test('should pass', () => {}); 9 | -------------------------------------------------------------------------------- /e2e/global-setup/invalidSetup.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | console.log('there is no exported function'); 9 | -------------------------------------------------------------------------------- /e2e/global-teardown-esm/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export default 'hello!'; 9 | -------------------------------------------------------------------------------- /e2e/global-teardown-esm/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module", 3 | "jest": { 4 | "testEnvironment": "node", 5 | "globalTeardown": "/teardown.js", 6 | "transform": {} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/global-teardown/custom-tests-dir/pass.test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | test('should pass', () => {}); 9 | -------------------------------------------------------------------------------- /e2e/global-teardown/invalidTeardown.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | console.log('there is no exported function'); 9 | -------------------------------------------------------------------------------- /e2e/imported-globals/babel.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = require('../../babel.config'); 9 | -------------------------------------------------------------------------------- /e2e/imported-globals/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/isolate-modules-async/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "isolate-modules-async", 3 | "type": "module", 4 | "jest": { 5 | "transform": {}, 6 | "testEnvironment": "node" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/jasmine-async/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/jest-object/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/jest-object/randomize-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "displayName": "Config from randomize-config.json file", 3 | "randomize": true 4 | } 5 | -------------------------------------------------------------------------------- /e2e/jest-object/showSeed-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "displayName": "Config from showSeed-config.json file", 3 | "showSeed": true 4 | } 5 | -------------------------------------------------------------------------------- /e2e/json-reporter/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "coverageReporters": [ 5 | "json" 6 | ] 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/lifecycles/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | */ 8 | 9 | module.exports = () => {}; 10 | -------------------------------------------------------------------------------- /e2e/lifecycles/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/list-tests/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/location-in-results/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/mock-functions/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/mock-json/__mocks__/data.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": "bar" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/mock-json/data.json: -------------------------------------------------------------------------------- 1 | { 2 | "real": "data" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/mock-json/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/mock-names/with-empty-mock-name-not-called/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = () => {}; 9 | -------------------------------------------------------------------------------- /e2e/mock-names/with-empty-mock-name-not-called/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "clearMocks": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/mock-names/with-empty-mock-name/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = () => {}; 9 | -------------------------------------------------------------------------------- /e2e/mock-names/with-empty-mock-name/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "clearMocks": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/mock-names/with-mock-name-call-times-fail/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = () => {}; 9 | -------------------------------------------------------------------------------- /e2e/mock-names/with-mock-name-call-times-fail/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "clearMocks": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/mock-names/with-mock-name-call-times-pass/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = () => {}; 9 | -------------------------------------------------------------------------------- /e2e/mock-names/with-mock-name-call-times-pass/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "clearMocks": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/mock-names/with-mock-name-not-called-fail/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = () => {}; 9 | -------------------------------------------------------------------------------- /e2e/mock-names/with-mock-name-not-called-fail/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "clearMocks": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/mock-names/with-mock-name-not-called-pass/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "clearMocks": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/mock-names/with-mock-name-not-called/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = () => {}; 9 | -------------------------------------------------------------------------------- /e2e/mock-names/with-mock-name-not-called/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "clearMocks": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/mock-names/with-mock-name/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = () => {}; 9 | -------------------------------------------------------------------------------- /e2e/mock-names/with-mock-name/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "clearMocks": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/mock-names/without-mock-name-not-called/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = () => {}; 9 | -------------------------------------------------------------------------------- /e2e/mock-names/without-mock-name-not-called/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "clearMocks": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/mock-names/without-mock-name/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = () => {}; 9 | -------------------------------------------------------------------------------- /e2e/mock-names/without-mock-name/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "clearMocks": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/module-name-mapper-correct-config/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/e2e/module-name-mapper-correct-config/style.css -------------------------------------------------------------------------------- /e2e/module-name-mapper-correct-config/style.sass: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/e2e/module-name-mapper-correct-config/style.sass -------------------------------------------------------------------------------- /e2e/module-name-mapper-correct-mock-absolute-path/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "moduleNameMapper": { 4 | "^/(.*)$": "/src/$1" 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /e2e/module-name-mapper-mock/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "moduleNameMapper": { 4 | "^@@storage/(.*)$": "/src/storage/$1" 5 | }, 6 | "testEnvironment": "node" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/module-name-mapper-wrong-array-config/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "moduleNameMapper": { 4 | "\\.(css|less)$": [ 5 | "no-such-module", 6 | "no-such-module-2" 7 | ] 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /e2e/module-name-mapper-wrong-array-config/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/e2e/module-name-mapper-wrong-array-config/style.css -------------------------------------------------------------------------------- /e2e/module-name-mapper-wrong-config/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "moduleNameMapper": { 4 | "\\.(css|less)$": "no-such-module" 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /e2e/module-name-mapper-wrong-config/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/e2e/module-name-mapper-wrong-config/style.css -------------------------------------------------------------------------------- /e2e/module-parent-null-in-test/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": {} 3 | } 4 | -------------------------------------------------------------------------------- /e2e/multi-project-babel/prj-1/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = (text: string) => text; 9 | -------------------------------------------------------------------------------- /e2e/multi-project-babel/prj-1/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /e2e/multi-project-babel/prj-2/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = (text: string) => text; 9 | -------------------------------------------------------------------------------- /e2e/multi-project-babel/prj-2/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /e2e/multi-project-babel/prj-3/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "rootDir": "src" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/multi-project-babel/prj-4/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "rootDir": "src" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/multi-project-babel/prj-5/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "rootDir": "src" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/multiple-configs/jest.config.json: -------------------------------------------------------------------------------- 1 | { 2 | // this is a comment in a JSON file 3 | "displayName": "Config from json file" 4 | } 5 | -------------------------------------------------------------------------------- /e2e/multiple-configs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "displayName": "Config from package.json file" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/native-async-mock/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/native-esm-typescript/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "native-esm-typescript", 3 | "version": "1.0.0", 4 | "jest": { 5 | "extensionsToTreatAsEsm": [ 6 | ".ts" 7 | ], 8 | "testEnvironment": "node" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /e2e/native-esm/add.wasm: -------------------------------------------------------------------------------- 1 | asm`add 2 |  j -------------------------------------------------------------------------------- /e2e/native-esm/anotherDynamicImport.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export * from './index'; 9 | -------------------------------------------------------------------------------- /e2e/native-esm/dynamicImport.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export * from './index'; 9 | -------------------------------------------------------------------------------- /e2e/native-esm/fromCjs.mjs: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export {default} from './commonjs.cjs'; 9 | -------------------------------------------------------------------------------- /e2e/native-esm/namespaceExport.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export * as bag from './index.js'; 9 | -------------------------------------------------------------------------------- /e2e/native-esm/reexport.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export * from './index.js'; 9 | -------------------------------------------------------------------------------- /e2e/native-esm/wasm-bindgen/index_bg.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/e2e/native-esm/wasm-bindgen/index_bg.wasm -------------------------------------------------------------------------------- /e2e/nested-event-loop/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "jsdom" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/nested-test-definitions/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "jsdom" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/no-tests-found-test/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/node-path/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "transform": { 5 | "\\.jsx?$": "../../packages/babel-jest" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/node-path/src/path/file.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 'use strict'; 8 | 9 | module.exports = 42; 10 | -------------------------------------------------------------------------------- /e2e/node-url-manual-mocks/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/override-globals/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "setupFiles": [ 5 | "/setup.js" 6 | ] 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "transform": { 4 | "\\.js$": "/../packages/babel-jest" 5 | }, 6 | "testEnvironment": "node", 7 | "testPathIgnorePatterns": [ 8 | "/(?:.+?)/__tests__/" 9 | ] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /e2e/pnp/.yarnrc.yml: -------------------------------------------------------------------------------- 1 | nodeLinker: pnp 2 | -------------------------------------------------------------------------------- /e2e/pnp/lib/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | */ 8 | 9 | module.exports = () => 42; 10 | -------------------------------------------------------------------------------- /e2e/pnp/lib/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.0.0" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/pnp/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "foo": "portal:./lib", 4 | "undeclared": "portal:./undeclared-dependency" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/pnp/undeclared-dependency/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.0.0" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/presets/cjs/node_modules/jest-preset-cjs/mapper.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = 42; 9 | -------------------------------------------------------------------------------- /e2e/presets/cjs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "preset": "jest-preset-cjs" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/presets/js-type-module/node_modules/jest-preset-js-type-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/presets/js-type-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "preset": "jest-preset-js-type-module" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/presets/js/node_modules/jest-preset-js/mapper.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = 42; 9 | -------------------------------------------------------------------------------- /e2e/presets/js/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "preset": "jest-preset-js" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/presets/json/node_modules/jest-preset-json/jest-preset.json: -------------------------------------------------------------------------------- 1 | { 2 | "moduleNameMapper": { 3 | "^.+\\.foo$": "jest-preset-json/mapper.js" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/presets/json/node_modules/jest-preset-json/mapper.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = 42; 9 | -------------------------------------------------------------------------------- /e2e/presets/json/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "preset": "jest-preset-json" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/presets/mjs/node_modules/jest-preset-mjs/mapper.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = 42; 9 | -------------------------------------------------------------------------------- /e2e/presets/mjs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "preset": "jest-preset-mjs" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/process-exit/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/promise-and-callback/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/promise-async-handling/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "waitNextEventLoopTurnForUnhandledRejectionEvents": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/promise-reject/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/randomize/different-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "displayName": "Config from different-config.json file", 3 | "randomize": true 4 | } 5 | -------------------------------------------------------------------------------- /e2e/randomize/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/read-initial-options/json-config/jest.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "jestConfig": "jest.config.json" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/read-initial-options/multiple-config-files/jest.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "jestConfig": "jest.config.json" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/read-initial-options/pkg-config/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "jestConfig": "package.json" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/regex-(char-in-path/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/require-after-teardown/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/require-main-after-create-require/empty.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | -------------------------------------------------------------------------------- /e2e/require-main-after-create-require/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/require-main-isolate-modules/child.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | module.exports = 1; 8 | -------------------------------------------------------------------------------- /e2e/require-main-isolate-modules/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/require-main-reset-modules/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/require-main/example.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = true; 9 | -------------------------------------------------------------------------------- /e2e/require-main/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/require-missing-ext/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "moduleFileExtensions": [ 4 | "js" 5 | ] 6 | }, 7 | "dependencies": { 8 | "discord.js": "11.5.1" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /e2e/reset-modules/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/resolve-async/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module", 3 | "jest": { 4 | "resolver": "/resolver.cjs", 5 | "transform": {} 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /e2e/resolve-async/some-other-file.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export default 'Hello from mapped file!!'; 9 | -------------------------------------------------------------------------------- /e2e/resolve-conditions/.gitignore: -------------------------------------------------------------------------------- 1 | !node_modules 2 | -------------------------------------------------------------------------------- /e2e/resolve-conditions/node_modules/fake-dep/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fake-dep", 3 | "version": "1.0.0", 4 | "exports": { 5 | ".": { 6 | "import": "./module.mjs", 7 | "require": "./module.cjs" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /e2e/resolve-conditions/node_modules/fake-dual-dep2/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fake-dual-dep2", 3 | "version": "1.0.0", 4 | "exports": { 5 | ".": { 6 | "node": "./node.mjs", 7 | "browser": "./browser.mjs" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /e2e/resolve-get-paths/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/resolve-no-extensions/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "moduleFileExtensions": [ 4 | "js" 5 | ] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /e2e/resolve-no-extensions/some-json-file.json: -------------------------------------------------------------------------------- 1 | { 2 | "found": true 3 | } 4 | -------------------------------------------------------------------------------- /e2e/resolve-node-module/__mocks__/mock-jsx-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mock-jsx-module", 3 | "main": "." 4 | } 5 | -------------------------------------------------------------------------------- /e2e/resolve-node-module/__mocks__/mock-module-alt/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mock-module-alt", 3 | "main": "./" 4 | } 5 | -------------------------------------------------------------------------------- /e2e/resolve-node-module/__mocks__/mock-module/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = 'test'; 9 | -------------------------------------------------------------------------------- /e2e/resolve-node-module/__mocks__/mock-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mock-module", 3 | "main": "." 4 | } 5 | -------------------------------------------------------------------------------- /e2e/resolve-node-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "moduleFileExtensions": [ 4 | "js", 5 | "json", 6 | "jsx" 7 | ], 8 | "testEnvironment": "node" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /e2e/resolve-with-paths/dir/mod.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = 'mod'; 9 | -------------------------------------------------------------------------------- /e2e/resolve-with-paths/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/resolve/__mocks__/Test5.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = {key: 'mock'}; 9 | -------------------------------------------------------------------------------- /e2e/resolve/__mocks__/Test6.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = {key: 'mock'}; 9 | -------------------------------------------------------------------------------- /e2e/resolve/__tests__/nope.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/e2e/resolve/__tests__/nope.txt -------------------------------------------------------------------------------- /e2e/resolve/test1.android.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = {extension: 'android.js'}; 9 | -------------------------------------------------------------------------------- /e2e/resolve/test1.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = {extension: 'js'}; 9 | -------------------------------------------------------------------------------- /e2e/resolve/test1.json: -------------------------------------------------------------------------------- 1 | { 2 | "extension": "json" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/resolve/test1.native.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = {extension: 'native.js'}; 9 | -------------------------------------------------------------------------------- /e2e/resolve/test2.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = {extension: 'js'}; 9 | -------------------------------------------------------------------------------- /e2e/resolve/test2.json: -------------------------------------------------------------------------------- 1 | { 2 | "extension": "json" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/resolve/test2.native.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = {extension: 'native.js'}; 9 | -------------------------------------------------------------------------------- /e2e/resolve/test2mapper.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = {extension: '.js'}; 9 | -------------------------------------------------------------------------------- /e2e/resolve/test2mapper.native.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = {extension: 'native.js'}; 9 | -------------------------------------------------------------------------------- /e2e/resolve/test3.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = {extension: 'js'}; 9 | -------------------------------------------------------------------------------- /e2e/resolve/test3.json: -------------------------------------------------------------------------------- 1 | { 2 | "extension": "json" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/resolve/test4.json: -------------------------------------------------------------------------------- 1 | { 2 | "extension": "json" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/retain-all-files/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "testPathIgnorePatterns": [], 5 | "haste": { 6 | "retainAllFiles": true 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /e2e/run-programmatically-multiple-projects/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "runcli-multiple-projects", 3 | "version": "1.0.0", 4 | "dependencies": {}, 5 | "jest": {} 6 | } 7 | -------------------------------------------------------------------------------- /e2e/run-programmatically/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "run-programmatically", 3 | "version": "1.0.0", 4 | "dependencies": {}, 5 | "jest": {} 6 | } 7 | -------------------------------------------------------------------------------- /e2e/runtime-internal-module-registry/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/setup-files/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "setupFiles": [ 4 | "./setup-fetchdata.js" 5 | ] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /e2e/shard/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/snapshot-concurrent/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/snapshot-escape/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/snapshot-formatting-changes/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "snapshotFormat": { 5 | "printBasicPrototype": false, 6 | "indent": 8 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /e2e/snapshot-mock-fs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/snapshot-resolver/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "snapshotResolver": "/customSnapshotResolver.js" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/snapshot-unknown/__tests__/__snapshots__/fails.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing 2 | 3 | exports[`snapshot this one makes not toMatchSnapshot assertion, but has a .snap file 1`] = `"normal"`; 4 | -------------------------------------------------------------------------------- /e2e/snapshot-unknown/__tests__/__snapshots__/fails2.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing 2 | 3 | exports[`snapshot this one makes not toMatchSnapshot assertion, but has a .snap file 1`] = `"normal"`; 4 | -------------------------------------------------------------------------------- /e2e/snapshot-unknown/__tests__/__snapshots__/works.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing 2 | 3 | exports[`snapshot some snapshots exists and are fine 1`] = `"normal"`; 4 | -------------------------------------------------------------------------------- /e2e/snapshot-unknown/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/snapshot/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/stack-trace-no-capture-stack-trace/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/stack-trace/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/summary-threshold/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/test-environment-async/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "./TestEnvironment.js" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/test-environment-circus-async/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/test-environment-circus/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/test-environment-esm/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module", 3 | "jest": { 4 | "testEnvironment": "/EnvESM.js", 5 | "transform": {} 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /e2e/test-environment-run-script/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "/EnvUsingRunScript.js" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/test-environment/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/test-failing-snapshot-all-pass/__tests__/__snapshots__/snapshot.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing 2 | 3 | exports[`snapshots not updated 1`] = `"1"`; 4 | 5 | exports[`snapshots not updated 2`] = `"1"`; 6 | -------------------------------------------------------------------------------- /e2e/test-failing-snapshot-all-pass/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/test-failing-snapshot/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/test-failing/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/test-in-root/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/test-match-default/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": {} 3 | } 4 | -------------------------------------------------------------------------------- /e2e/test-match-default/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "include": ["./**/*.tsx"] 4 | } 5 | -------------------------------------------------------------------------------- /e2e/test-match-ts/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testMatch": [ 4 | "**/__tests__/*.?ts" 5 | ] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /e2e/test-match/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testMatch": [ 4 | "**/test-suites/*.?js" 5 | ] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /e2e/test-name-pattern-skipped/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/test-name-pattern/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/test-path-patterns-subprojects/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /e2e/test-results-processor/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/test-retries/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/test-todo/__tests__/todoNoArgs.test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | it.todo(); 9 | -------------------------------------------------------------------------------- /e2e/test-todo/__tests__/todoNonString.test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | it.todo(() => {}); 9 | -------------------------------------------------------------------------------- /e2e/test-todo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/to-match-inline-snapshot-with-prettier-3/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "devDependencies": { 3 | "prettier": "^3.0.0", 4 | "prettier-2": "npm:prettier@^2" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/to-match-inline-snapshot-with-retries/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/to-match-inline-snapshot/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/to-match-snapshot-with-retries/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/to-match-snapshot-with-string-serializer/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "snapshotSerializers": [ 5 | "./serializers/string" 6 | ] 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/to-match-snapshot/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/to-throw-error-matching-inline-snapshot/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/to-throw-error-matching-snapshot/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/transform-linked-modules/ignored/symlink.js: -------------------------------------------------------------------------------- 1 | ../package/index.js -------------------------------------------------------------------------------- /e2e/transform-linked-modules/package/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = 'package/index'; 9 | -------------------------------------------------------------------------------- /e2e/transform/async-transformer/some-symbol.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export default Symbol('hello!'); 9 | -------------------------------------------------------------------------------- /e2e/transform/babel-jest-ignored/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "transformIgnorePatterns": [ 5 | "node_modules", 6 | "jest-runner" 7 | ] 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /e2e/transform/babel-jest-manual/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "@babel/preset-flow": "^7.0.0" 4 | }, 5 | "jest": { 6 | "testEnvironment": "node", 7 | "transform": { 8 | "\\.js$": "/transformer.js" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /e2e/transform/babel-jest/some-dir/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/e2e/transform/babel-jest/some-dir/.gitkeep -------------------------------------------------------------------------------- /e2e/transform/cache/common-file.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = 'hello'; 9 | -------------------------------------------------------------------------------- /e2e/transform/cache/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cache", 3 | "version": "1.0.0", 4 | "jest": { 5 | "testEnvironment": "node", 6 | "transform": { 7 | "\\.js$": "/transformer.js" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /e2e/transform/custom-instrumenting-preprocessor/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "transform": { 4 | "\\.js$": "/preprocessor.js" 5 | }, 6 | "testEnvironment": "node" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/transform/esm-transformer/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node", 4 | "transform": { 5 | "\\.js$": "/my-transform.mjs" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/transform/transform-environment/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "esModuleInterop": true, 4 | "module": "commonjs" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/transform/transform-esm-runner/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module", 3 | "jest": { 4 | "rootDir": "./", 5 | "runner": "/runner.mjs" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /e2e/transform/transform-esm-testrunner/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module", 3 | "dependencies": { 4 | "@jest/test-result": "link:../../../packages/jest-test-result" 5 | }, 6 | "jest": { 7 | "rootDir": "./", 8 | "testRunner": "/test-runner.mjs" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /e2e/transform/transform-runner/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "esModuleInterop": true, 4 | "module": "commonjs" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/transform/transform-snapshotResolver/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/transform/transform-testrunner/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "esModuleInterop": true, 4 | "module": "commonjs" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/transform/transformer-config/.babelrc: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /e2e/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.test.json", 3 | "compilerOptions": { 4 | "rootDir": "./" 5 | }, 6 | "include": ["./**/*"], 7 | "references": [{"path": "../packages/test-utils"}] 8 | } 9 | -------------------------------------------------------------------------------- /e2e/typescript-config/modern-module-resolution/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "commonjs" 3 | } 4 | -------------------------------------------------------------------------------- /e2e/typescript-config/modern-module-resolution/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ESNext", 4 | "module": "Node16", 5 | "moduleResolution": "Node16", 6 | "strict": true 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/verbose-reporter/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "testEnvironment": "node" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /e2e/vmscript-coverage/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "rootDir": "./", 4 | "testEnvironment": "node", 5 | "collectCoverageFrom": [ 6 | "package/**/*.js" 7 | ] 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /e2e/watch-plugins/cjs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "watchPlugins": [ 4 | "./my-watch-plugin.cjs" 5 | ] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /e2e/watch-plugins/js-type-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module", 3 | "jest": { 4 | "watchPlugins": [ 5 | "./my-watch-plugin.js" 6 | ] 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /e2e/watch-plugins/js/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "watchPlugins": [ 4 | "./my-watch-plugin.js" 5 | ] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /e2e/watch-plugins/mjs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "watchPlugins": [ 4 | "./my-watch-plugin.mjs" 5 | ] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /e2e/worker-restart-before-send/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "maxWorkers": 2, 4 | "testSequencer": "./testSequencer.js" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/worker-restarting/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": { 3 | "maxWorkers": 2, 4 | "workerIdleMemoryLimit": "1MB" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /e2e/wrong-env/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest": {} 3 | } 4 | -------------------------------------------------------------------------------- /examples/angular/shared/sub.service.ts: -------------------------------------------------------------------------------- 1 | import {Injectable} from '@angular/core'; 2 | 3 | @Injectable() 4 | export class SubService { 5 | public getTitle() { 6 | return 'Angular App with Jest'; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /examples/angular/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "emitDeclarationOnly": false, 5 | "noEmit": true, 6 | "experimentalDecorators": true, 7 | "strict": true 8 | }, 9 | "include": ["./**/*"] 10 | } 11 | -------------------------------------------------------------------------------- /examples/async/.babelrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | // See https://babeljs.io/docs/en/babel-preset-env#targets 3 | presets: [['@babel/preset-env', {targets: {node: 'current'}}]], 4 | }; 5 | -------------------------------------------------------------------------------- /examples/async/user.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates.. All Rights Reserved. 2 | 3 | import request from './request'; 4 | 5 | export function getUserName(userID) { 6 | return request(`/users/${userID}`).then(user => user.name); 7 | } 8 | -------------------------------------------------------------------------------- /examples/automatic-mocks/.babelrc.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | module.exports = { 4 | presets: ['@babel/preset-env'], 5 | }; 6 | -------------------------------------------------------------------------------- /examples/automatic-mocks/utils.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates.. All Rights Reserved. 2 | 3 | export default { 4 | authorize: () => 'token', 5 | isAuthorized: secret => secret === 'wizard', 6 | }; 7 | -------------------------------------------------------------------------------- /examples/expect-extend/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "emitDeclarationOnly": false, 5 | "noEmit": true, 6 | "strict": true 7 | }, 8 | "include": ["./**/*"] 9 | } 10 | -------------------------------------------------------------------------------- /examples/getting-started/.babelrc.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | module.exports = { 4 | presets: ['@babel/preset-env'], 5 | }; 6 | -------------------------------------------------------------------------------- /examples/getting-started/sum.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates.. All Rights Reserved. 2 | 3 | function sum(a, b) { 4 | return a + b; 5 | } 6 | 7 | module.exports = sum; 8 | -------------------------------------------------------------------------------- /examples/getting-started/sum.test.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates.. All Rights Reserved. 2 | 3 | const sum = require('./sum'); 4 | 5 | test('adds 1 + 2 to equal 3', () => { 6 | expect(sum(1, 2)).toBe(3); 7 | }); 8 | -------------------------------------------------------------------------------- /examples/jquery/.babelrc.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | module.exports = { 4 | presets: ['@babel/preset-env'], 5 | }; 6 | -------------------------------------------------------------------------------- /examples/manual-mocks/.babelrc.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | module.exports = { 4 | presets: ['@babel/preset-env'], 5 | }; 6 | -------------------------------------------------------------------------------- /examples/manual-mocks/__mocks__/lodash.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates.. All Rights Reserved. 2 | 3 | const lodash = jest.createMockFromModule('lodash'); 4 | 5 | lodash.head = arr => 5; 6 | 7 | export default lodash; 8 | -------------------------------------------------------------------------------- /examples/manual-mocks/__tests__/lodashMocking.test.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates.. All Rights Reserved. 2 | 3 | import lodash from 'lodash'; 4 | 5 | test('if lodash head is mocked', () => { 6 | expect(lodash.head([2, 3])).toBe(5); 7 | }); 8 | -------------------------------------------------------------------------------- /examples/manual-mocks/__tests__/user.test.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates.. All Rights Reserved. 2 | 3 | import user from '../models/user'; 4 | 5 | test('if original user model', () => { 6 | expect(user.getAuthenticated()).toEqual({age: 26, name: 'Real name'}); 7 | }); 8 | -------------------------------------------------------------------------------- /examples/manual-mocks/models/user.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates.. All Rights Reserved. 2 | 3 | export default { 4 | getAuthenticated: () => ({ 5 | age: 26, 6 | name: 'Real name', 7 | }), 8 | }; 9 | -------------------------------------------------------------------------------- /examples/manual-mocks/utils.js: -------------------------------------------------------------------------------- 1 | export function isLocalhost() { 2 | return process.env.HOSTNAME === 'localhost'; 3 | } 4 | -------------------------------------------------------------------------------- /examples/module-mock/.babelrc.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | 'use strict'; 4 | 5 | module.exports = { 6 | presets: ['@babel/preset-env'], 7 | }; 8 | -------------------------------------------------------------------------------- /examples/module-mock/fruit.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates.. All Rights Reserved. 2 | 3 | export const apple = 'apple'; 4 | 5 | export const strawberry = () => 'strawberry'; 6 | 7 | export default () => 'banana'; 8 | -------------------------------------------------------------------------------- /examples/react-native/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /examples/react-native/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /examples/react-testing-library/.babelrc.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | module.exports = { 4 | presets: [ 5 | '@babel/preset-env', 6 | ['@babel/preset-react', {runtime: 'automatic'}], 7 | ], 8 | }; 9 | -------------------------------------------------------------------------------- /examples/react/.babelrc.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | module.exports = { 4 | presets: [ 5 | '@babel/preset-env', 6 | ['@babel/preset-react', {runtime: 'automatic'}], 7 | ], 8 | }; 9 | -------------------------------------------------------------------------------- /examples/snapshot/.babelrc.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | module.exports = { 4 | presets: [ 5 | '@babel/preset-env', 6 | ['@babel/preset-react', {runtime: 'automatic'}], 7 | ], 8 | }; 9 | -------------------------------------------------------------------------------- /examples/snapshot/__tests__/__snapshots__/clock.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing 2 | 3 | exports[`renders correctly 1`] = ` 4 |

5 | 1482363367.071 6 | seconds have elapsed since the UNIX epoch. 7 |

8 | `; 9 | -------------------------------------------------------------------------------- /examples/timer/.babelrc.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | module.exports = { 4 | presets: ['@babel/preset-env'], 5 | }; 6 | -------------------------------------------------------------------------------- /examples/typescript/.babelrc.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | module.exports = { 4 | presets: [ 5 | '@babel/preset-env', 6 | '@babel/preset-typescript', 7 | ['@babel/preset-react', {runtime: 'automatic'}], 8 | ], 9 | }; 10 | -------------------------------------------------------------------------------- /examples/typescript/__tests__/sub-test.ts: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | import {expect, it} from '@jest/globals'; 4 | import sub from '../sub'; 5 | 6 | it('subtracts 5 - 1 to equal 4 in TypeScript', () => { 7 | expect(sub(5, 1)).toBe(4); 8 | }); 9 | -------------------------------------------------------------------------------- /examples/typescript/sub.ts: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | import sum from './sum'; 4 | 5 | const sub = (a: number, b: number): number => sum(a, -b); 6 | 7 | export default sub; 8 | -------------------------------------------------------------------------------- /examples/typescript/sum.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates.. All Rights Reserved. 2 | 3 | function sum(a, b) { 4 | return a + b; 5 | } 6 | 7 | module.exports = sum; 8 | -------------------------------------------------------------------------------- /examples/typescript/sum.ts: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | const sum = (a: number, b: number): number => a + b; 4 | 5 | export default sum; 6 | -------------------------------------------------------------------------------- /examples/typescript/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ESNext", 4 | "noEmit": true, 5 | "module": "commonjs", 6 | "jsx": "react-jsx" 7 | }, 8 | "include": ["./**/*"] 9 | } 10 | -------------------------------------------------------------------------------- /examples/typescript/utils.ts: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | export function isLocalhost() { 4 | return process.env.HOSTNAME === 'localhost'; 5 | } 6 | -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- 1 | { 2 | "packages": [ 3 | "packages/*" 4 | ], 5 | "npmClient": "yarn", 6 | "command": { 7 | "version": { 8 | "syncWorkspaceLock": true 9 | } 10 | }, 11 | "version": "30.0.0-beta.4" 12 | } 13 | -------------------------------------------------------------------------------- /packages/babel-jest/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/babel-jest/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "compilerOptions": { 5 | "types": ["node", "@jest/test-globals"] 6 | }, 7 | "references": [{"path": "../../"}, {"path": "../../../test-utils"}] 8 | } 9 | -------------------------------------------------------------------------------- /packages/babel-plugin-jest-hoist/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/babel-plugin-jest-hoist/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "compilerOptions": { 5 | "types": ["node", "@jest/test-globals"] 6 | }, 7 | "references": [{"path": "../../"}] 8 | } 9 | -------------------------------------------------------------------------------- /packages/babel-plugin-jest-hoist/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "build" 6 | }, 7 | "include": ["./src/**/*"], 8 | "exclude": ["./**/__tests__/**/*"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/babel-preset-jest/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/create-jest/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/create-jest/README.md: -------------------------------------------------------------------------------- 1 | # create-jest 2 | 3 | > Getting started with Jest with a single command 4 | 5 | ```bash 6 | npm init jest@latest 7 | # Or for Yarn 8 | yarn create jest 9 | # Or for pnpm 10 | pnpm create jest 11 | ``` 12 | -------------------------------------------------------------------------------- /packages/create-jest/src/__tests__/__fixtures__/has-jest-config-file-cjs/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/create-jest/src/__tests__/__fixtures__/has-jest-config-file-cts/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/create-jest/src/__tests__/__fixtures__/has-jest-config-file-js/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/create-jest/src/__tests__/__fixtures__/has-jest-config-file-json/jest.config.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/create-jest/src/__tests__/__fixtures__/has-jest-config-file-json/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/create-jest/src/__tests__/__fixtures__/has-jest-config-file-mjs/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/create-jest/src/__tests__/__fixtures__/has-jest-config-file-ts/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/create-jest/src/__tests__/__fixtures__/has-jest-config-in-package-json/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "has_jest_config_in_package_json", 3 | "jest": { 4 | "coverage": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/create-jest/src/__tests__/__fixtures__/no-package-json/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/create-jest/src/__tests__/__fixtures__/no-package-json/index.js -------------------------------------------------------------------------------- /packages/create-jest/src/__tests__/__fixtures__/only-package-json/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "only_package_json", 3 | "scripts": { 4 | "test": "different-test-runner" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/create-jest/src/__tests__/__fixtures__/test-generated-jest-config-ts/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/create-jest/src/__tests__/__fixtures__/test-script-configured/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "test_script_configured", 3 | "scripts": { 4 | "test": "jest" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/create-jest/src/__tests__/__fixtures__/type-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "type_module", 3 | "scripts": { 4 | "test": "different-test-runner" 5 | }, 6 | "type": "module" 7 | } 8 | -------------------------------------------------------------------------------- /packages/create-jest/src/__tests__/__fixtures__/typescript-in-dependencies/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "typescript_in_dev_dependencies", 3 | "devDependencies": { 4 | "typescript": "^4.7.3" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/create-jest/src/__tests__/__fixtures__/typescript-in-dev-dependencies/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "only-package-json", 3 | "dependencies": { 4 | "typescript": "^4.7.3" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/create-jest/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/diff-sequences/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __benchmarks__ 4 | __typetests__ 5 | src 6 | tsconfig.json 7 | tsconfig.tsbuildinfo 8 | api-extractor.json 9 | .eslintcache 10 | -------------------------------------------------------------------------------- /packages/diff-sequences/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/diff-sequences/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "build" 6 | }, 7 | "include": ["./src/**/*"], 8 | "exclude": ["./**/__tests__/**/*"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/expect-utils/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/expect-utils/__typetests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.typetest.json", 3 | "include": ["./**/*"] 4 | } 5 | -------------------------------------------------------------------------------- /packages/expect-utils/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/expect/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/expect/README.md: -------------------------------------------------------------------------------- 1 | # expect 2 | 3 | This package exports the `expect` function used in [Jest](https://jestjs.io/). You can find its documentation [on Jest's website](https://jestjs.io/docs/expect). 4 | -------------------------------------------------------------------------------- /packages/expect/__typetests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.typetest.json", 3 | "include": ["./**/*"] 4 | } 5 | -------------------------------------------------------------------------------- /packages/jest-changed-files/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-changed-files/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "build" 6 | }, 7 | "include": ["./src/**/*"], 8 | "references": [{"path": "../jest-util"}] 9 | } 10 | -------------------------------------------------------------------------------- /packages/jest-circus/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-circus/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-circus/src/legacy-code-todo-rewrite/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-cli/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-cli/__typetests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.typetest.json", 3 | "include": ["./**/*"] 4 | } 5 | -------------------------------------------------------------------------------- /packages/jest-cli/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "compilerOptions": { 5 | "types": ["node", "@jest/test-globals"] 6 | }, 7 | "references": [{"path": "../../"}] 8 | } 9 | -------------------------------------------------------------------------------- /packages/jest-config/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-config/src/__tests__/jest-preset.json: -------------------------------------------------------------------------------- 1 | { 2 | "moduleNameMapper": { 3 | "b": "b" 4 | }, 5 | "modulePathIgnorePatterns": ["b"], 6 | "setupFiles": ["b"], 7 | } 8 | -------------------------------------------------------------------------------- /packages/jest-config/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-console/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-console/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "compilerOptions": { 5 | "types": ["node", "@jest/test-globals"] 6 | }, 7 | "references": [{"path": "../../"}, {"path": "../../../test-utils"}] 8 | } 9 | -------------------------------------------------------------------------------- /packages/jest-core/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-core/README.md: -------------------------------------------------------------------------------- 1 | # @jest/core 2 | 3 | Jest is currently working on providing a programmatic API. This is under development, and usage of this package directly is currently not supported. 4 | -------------------------------------------------------------------------------- /packages/jest-core/src/__tests__/__fixtures__/watchPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-core/src/__tests__/__fixtures__/watchPlugin.js -------------------------------------------------------------------------------- /packages/jest-core/src/__tests__/__fixtures__/watchPlugin2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-core/src/__tests__/__fixtures__/watchPlugin2.js -------------------------------------------------------------------------------- /packages/jest-core/src/__tests__/test_root/.hiddenFolder/not-really-a-test.txt: -------------------------------------------------------------------------------- 1 | // not-really-a-test.txt 2 | 3 | require('../module.txt'); 4 | -------------------------------------------------------------------------------- /packages/jest-core/src/__tests__/test_root/__testtests__/do-not-match-me.txt: -------------------------------------------------------------------------------- 1 | // do-no-match-me.txt 2 | 3 | require('../module.txt'); 4 | -------------------------------------------------------------------------------- /packages/jest-core/src/__tests__/test_root/__testtests__/not-really-a-test.txt: -------------------------------------------------------------------------------- 1 | // not-really-a-test.txt 2 | 3 | require('../module.txt'); 4 | -------------------------------------------------------------------------------- /packages/jest-core/src/__tests__/test_root/module.foobar: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | // module.foobar 9 | -------------------------------------------------------------------------------- /packages/jest-core/src/__tests__/test_root/module.jsx: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | // module.jsx 9 | -------------------------------------------------------------------------------- /packages/jest-core/src/__tests__/test_root/noTests.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | // no tests for this one 9 | -------------------------------------------------------------------------------- /packages/jest-core/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}, {"path": "../../../test-utils"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-core/src/lib/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../../"}, {"path": "../../../../test-utils"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-core/src/plugins/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-create-cache-key-function/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-create-cache-key-function/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-diff/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-diff/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}, {"path": "../../../test-utils"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-docblock/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-docblock/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-docblock/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "build" 6 | }, 7 | "include": ["./src/**/*"], 8 | "exclude": ["./**/__tests__/**/*"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/jest-each/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | assets 6 | tsconfig.json 7 | tsconfig.tsbuildinfo 8 | api-extractor.json 9 | .eslintcache 10 | -------------------------------------------------------------------------------- /packages/jest-each/assets/default-demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-each/assets/default-demo.gif -------------------------------------------------------------------------------- /packages/jest-each/assets/describe-demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-each/assets/describe-demo.gif -------------------------------------------------------------------------------- /packages/jest-each/assets/tagged-template-literal.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-each/assets/tagged-template-literal.gif -------------------------------------------------------------------------------- /packages/jest-each/assets/test-demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-each/assets/test-demo.gif -------------------------------------------------------------------------------- /packages/jest-each/src/__tests__/__snapshots__/index.test.ts.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing 2 | 3 | exports[`throws an error when not called with the right number of arguments 1`] = `"\`.each\` must only be called with an Array or Tagged Template Literal."`; 4 | -------------------------------------------------------------------------------- /packages/jest-each/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-environment-jsdom-abstract/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-environment-jsdom/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-environment-jsdom/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}, {"path": "../../../test-utils"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-environment-node/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-environment-node/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}, {"path": "../../../test-utils"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-environment/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-expect/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-expect/__typetests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.typetest.json", 3 | "include": ["./**/*"] 4 | } 5 | -------------------------------------------------------------------------------- /packages/jest-fake-timers/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-fake-timers/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}, {"path": "../../../test-utils"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-get-type/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-get-type/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-get-type/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "build" 6 | }, 7 | "include": ["./src/**/*"], 8 | "exclude": ["./**/__tests__/**/*"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/jest-globals/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-globals/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-haste-map/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-haste-map/src/__tests__/test_dotfiles_root/.eslintrc.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | -------------------------------------------------------------------------------- /packages/jest-haste-map/src/__tests__/test_dotfiles_root/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | -------------------------------------------------------------------------------- /packages/jest-haste-map/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-haste-map/src/crawlers/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-haste-map/src/lib/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-jasmine2/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-jasmine2/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-leak-detector/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-leak-detector/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-matcher-utils/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-matcher-utils/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}, {"path": "../../../test-utils"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-message-util/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-message-util/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-mock/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-mock/__typetests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.typetest.json", 3 | "compilerOptions": { 4 | "types": ["node"] 5 | }, 6 | "include": ["./**/*"] 7 | } 8 | -------------------------------------------------------------------------------- /packages/jest-mock/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-pattern/README.md: -------------------------------------------------------------------------------- 1 | # @jest/pattern 2 | 3 | `@jest/pattern` is a helper library for the jest library that implements the logic for parsing and matching patterns. 4 | -------------------------------------------------------------------------------- /packages/jest-phabricator/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-regex-util/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-regex-util/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-regex-util/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "build" 6 | }, 7 | "include": ["./src/**/*"], 8 | "exclude": ["./**/__tests__/**/*"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/jest-repl/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-repl/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-reporters/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-reporters/__typetests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.typetest.json", 3 | "include": ["./**/*"] 4 | } 5 | -------------------------------------------------------------------------------- /packages/jest-reporters/assets/jest_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-reporters/assets/jest_logo.png -------------------------------------------------------------------------------- /packages/jest-reporters/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}, {"path": "../../../test-utils"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-resolve-dependencies/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-resolve-dependencies/src/__tests__/__fixtures__/__snapshots__/related.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing 2 | 3 | exports[`sample 1`] = `Object {}`; 4 | -------------------------------------------------------------------------------- /packages/jest-resolve-dependencies/src/__tests__/__fixtures__/node_modules/@myorg/pkg/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@myorg/pkg", 3 | "private": true, 4 | "main": "index.js" 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-resolve-dependencies/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}, {"path": "../../../test-utils"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-resolve/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-resolve/__typetests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.typetest.json", 3 | "include": ["./**/*"] 4 | } 5 | -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/bar/node_modules/bar/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/bar/node_modules/bar/index.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/bar/node_modules/foo: -------------------------------------------------------------------------------- 1 | ../../foo/node_modules/foo -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/conditions/node_modules/exports/default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/conditions/node_modules/exports/default.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/conditions/node_modules/exports/import.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/conditions/node_modules/exports/import.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/conditions/node_modules/exports/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/conditions/node_modules/exports/main.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/conditions/node_modules/exports/nestedDefault.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/conditions/node_modules/exports/nestedDefault.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/conditions/node_modules/exports/nestedRequire.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/conditions/node_modules/exports/nestedRequire.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/conditions/node_modules/exports/other.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/conditions/node_modules/exports/other.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/conditions/node_modules/exports/require.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/conditions/node_modules/exports/require.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/conditions/node_modules/exports/some-other-directory/file.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/conditions/node_modules/exports/some-other-directory/file.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/conditions/node_modules/main/file.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/conditions/node_modules/main/file.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/conditions/node_modules/main/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "main", 3 | "main": "./file.js" 4 | } 5 | -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/foo.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/foo/bar/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/foo/bar/index.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/foo/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/foo/index.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/foo/node_modules/dep/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/foo/node_modules/dep/index.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/foo/node_modules/foo/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/foo/node_modules/foo/index.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/imports/array-import/browser.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/imports/array-import/browser.cjs -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/imports/array-import/chrome.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/imports/array-import/chrome.cjs -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/imports/array-import/node.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/imports/array-import/node.mjs -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/imports/foo-import/internal.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/imports/foo-import/internal.cjs -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/imports/foo-import/node_modules/external-foo/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/imports/foo-import/node_modules/external-foo/main.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/imports/foo-import/node_modules/external-foo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "external-foo", 3 | "main": "main.js" 4 | } 5 | -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/imports/foo-import/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "foo-import", 3 | "imports": { 4 | "#nested": { 5 | "require": "./internal.cjs", 6 | "default": "external-foo" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/imports/nested-import/browser.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/imports/nested-import/browser.cjs -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/imports/nested-import/esm.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/imports/nested-import/esm.mjs -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/imports/nested-import/node.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/imports/nested-import/node.cjs -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/imports/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "imports" 3 | } 4 | -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/mockJsDependency.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/mockJsDependency.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/mockJsDependency.native.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/mockJsDependency.native.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/mockJsxDependency.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/mockJsxDependency.jsx -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/mockJsxDependency.native.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/mockJsxDependency.native.jsx -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "__mocks__", 3 | "version": "1.0.0", 4 | "dependencies": {} 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/self-ref/foo/file.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/self-ref/foo/file.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/self-ref/foo/nested-with-no-exports/file.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/self-ref/foo/nested-with-no-exports/file.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/self-ref/foo/nested-with-no-exports/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "foo-no-exports" 3 | } 4 | -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/self-ref/foo/nested-with-own-pkg/file.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/self-ref/foo/nested-with-own-pkg/file.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/self-ref/foo/nested-with-own-pkg/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "foo-other-name", 3 | "exports": "./file.js" 4 | } 5 | -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/self-ref/foo/nested/file.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-resolve/src/__mocks__/self-ref/foo/nested/file.js -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/self-ref/foo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "foo", 3 | "exports": "./file.js" 4 | } 5 | -------------------------------------------------------------------------------- /packages/jest-resolve/src/__mocks__/self-ref/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "self-ref" 3 | } 4 | -------------------------------------------------------------------------------- /packages/jest-resolve/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-runner/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-runner/__typetests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.typetest.json", 3 | "include": ["./**/*"] 4 | } 5 | -------------------------------------------------------------------------------- /packages/jest-runner/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}, {"path": "../../../test-utils"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-runtime/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-runtime/src/__tests__/NODE_PATH_dir/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "NODE_PATH_dir", 3 | "version": "1.0.0", 4 | "dependencies": {} 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-runtime/src/__tests__/test_root/JSONFile.json: -------------------------------------------------------------------------------- 1 | {"isJSONModule": true} 2 | -------------------------------------------------------------------------------- /packages/jest-runtime/src/__tests__/test_root/NativeModule.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/packages/jest-runtime/src/__tests__/test_root/NativeModule.node -------------------------------------------------------------------------------- /packages/jest-runtime/src/__tests__/test_root/RegularModuleWithWrongExt.txt: -------------------------------------------------------------------------------- 1 | some file 2 | -------------------------------------------------------------------------------- /packages/jest-runtime/src/__tests__/test_root/haste-package/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "haste-package" 3 | } 4 | -------------------------------------------------------------------------------- /packages/jest-runtime/src/__tests__/test_root/internal-root.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": "bar" 3 | } 4 | -------------------------------------------------------------------------------- /packages/jest-runtime/src/__tests__/test_root/module_dir/my-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "my-module", 3 | "main": "./core.js" 4 | } 5 | -------------------------------------------------------------------------------- /packages/jest-runtime/src/__tests__/test_root/node_modules/jest-resolve-test/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jest-resolve-test", 3 | "version": "1.0.0", 4 | "main": "./node.js", 5 | "browser": "./browser.js" 6 | } 7 | -------------------------------------------------------------------------------- /packages/jest-runtime/src/__tests__/test_root/node_modules/not-a-haste-package/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "not-a-haste-package", 3 | "main": "./core.js" 4 | } 5 | -------------------------------------------------------------------------------- /packages/jest-runtime/src/__tests__/test_root/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "test_root", 3 | "version": "1.0.0", 4 | "dependencies": {} 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-runtime/src/__tests__/test_root/utf8_with_bom.json: -------------------------------------------------------------------------------- 1 | {"isJSONModuleEncodedInUTF8WithBOM": true} 2 | -------------------------------------------------------------------------------- /packages/jest-runtime/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}, {"path": "../../../test-utils"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-schemas/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-schemas/README.md: -------------------------------------------------------------------------------- 1 | # `@jest/schemas` 2 | 3 | Experimental and currently incomplete module for JSON schemas for [Jest's](https://jestjs.io/) configuration. 4 | -------------------------------------------------------------------------------- /packages/jest-schemas/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "build" 6 | }, 7 | "include": ["./src/**/*"], 8 | "exclude": ["./**/__mocks__/**/*", "./**/__tests__/**/*"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/jest-snapshot/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-snapshot/__typetests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.typetest.json", 3 | "include": ["./**/*"] 4 | } 5 | -------------------------------------------------------------------------------- /packages/jest-snapshot/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}, {"path": "../../../test-utils"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-source-map/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-source-map/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-source-map/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "build" 6 | }, 7 | "include": ["./src/**/*"], 8 | "exclude": ["./**/__tests__/**/*"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/jest-test-result/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-test-result/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-test-sequencer/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-test-sequencer/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}, {"path": "../../../test-utils"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-transform/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-transform/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}, {"path": "../../../test-utils"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-types/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-types/__typetests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.typetest.json", 3 | "include": ["./**/*"] 4 | } 5 | -------------------------------------------------------------------------------- /packages/jest-types/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "build" 6 | }, 7 | "include": ["./src/**/*"], 8 | "references": [{"path": "../jest-pattern"}, {"path": "../jest-schemas"}] 9 | } 10 | -------------------------------------------------------------------------------- /packages/jest-util/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-util/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "compilerOptions": { 5 | "types": ["node", "@jest/test-globals"] 6 | }, 7 | "references": [{"path": "../../"}] 8 | } 9 | -------------------------------------------------------------------------------- /packages/jest-validate/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-validate/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "compilerOptions": { 5 | "types": ["node", "@jest/test-globals"] 6 | }, 7 | "references": [{"path": "../../"}] 8 | } 9 | -------------------------------------------------------------------------------- /packages/jest-watcher/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest-watcher/src/lib/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-worker/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __benchmarks__ 4 | __typetests__ 5 | src 6 | tsconfig.json 7 | tsconfig.tsbuildinfo 8 | api-extractor.json 9 | .eslintcache 10 | -------------------------------------------------------------------------------- /packages/jest-worker/__typetests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.typetest.json", 3 | "compilerOptions": { 4 | "types": ["node"] 5 | }, 6 | "include": ["./**/*"] 7 | } 8 | -------------------------------------------------------------------------------- /packages/jest-worker/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest-worker/src/base/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "compilerOptions": { 5 | "types": ["node", "@jest/test-globals"] 6 | }, 7 | "references": [{"path": "../../../"}] 8 | } 9 | -------------------------------------------------------------------------------- /packages/jest-worker/src/workers/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "references": [{"path": "../../../"}] 5 | } 6 | -------------------------------------------------------------------------------- /packages/jest/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __typetests__ 4 | src 5 | tsconfig.json 6 | tsconfig.tsbuildinfo 7 | api-extractor.json 8 | .eslintcache 9 | -------------------------------------------------------------------------------- /packages/jest/__typetests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.typetest.json", 3 | "include": ["./**/*"] 4 | } 5 | -------------------------------------------------------------------------------- /packages/pretty-format/.npmignore: -------------------------------------------------------------------------------- 1 | **/__mocks__/** 2 | **/__tests__/** 3 | __benchmarks__ 4 | __typetests__ 5 | src 6 | tsconfig.json 7 | tsconfig.tsbuildinfo 8 | api-extractor.json 9 | .eslintcache 10 | -------------------------------------------------------------------------------- /packages/pretty-format/src/__tests__/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../../tsconfig.test.json", 3 | "include": ["./**/*"], 4 | "compilerOptions": { 5 | "types": ["node", "@jest/test-globals"] 6 | }, 7 | "references": [{"path": "../../"}] 8 | } 9 | -------------------------------------------------------------------------------- /packages/test-globals/README.md: -------------------------------------------------------------------------------- 1 | # test-globals 2 | 3 | Private package which provides type declarations of Jest's global test APIs for tests of Jest repo. 4 | -------------------------------------------------------------------------------- /tsconfig.test.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "composite": false, 5 | "emitDeclarationOnly": false, 6 | "noEmit": true, 7 | "skipLibCheck": true, 8 | "types": ["@jest/test-globals"] 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /tstyche.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://tstyche.org/schemas/config.json", 3 | "testFileMatch": ["packages/*/__typetests__/**/*.test.ts"] 4 | } 5 | -------------------------------------------------------------------------------- /website/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "editor.formatOnSave": true 3 | } 4 | -------------------------------------------------------------------------------- /website/static/.nojekyll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/.nojekyll -------------------------------------------------------------------------------- /website/static/CNAME: -------------------------------------------------------------------------------- 1 | jestjs.io 2 | -------------------------------------------------------------------------------- /website/static/img/blog/15-console.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/15-console.png -------------------------------------------------------------------------------- /website/static/img/blog/15-failure1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/15-failure1.png -------------------------------------------------------------------------------- /website/static/img/blog/15-failure2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/15-failure2.png -------------------------------------------------------------------------------- /website/static/img/blog/15-watch.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/15-watch.gif -------------------------------------------------------------------------------- /website/static/img/blog/16-reporter.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/16-reporter.gif -------------------------------------------------------------------------------- /website/static/img/blog/16-snapshots.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/16-snapshots.png -------------------------------------------------------------------------------- /website/static/img/blog/16-watch.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/16-watch.gif -------------------------------------------------------------------------------- /website/static/img/blog/19-asymmetric-matchers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/19-asymmetric-matchers.png -------------------------------------------------------------------------------- /website/static/img/blog/19-cli-error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/19-cli-error.png -------------------------------------------------------------------------------- /website/static/img/blog/19-skipped-tests.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/19-skipped-tests.png -------------------------------------------------------------------------------- /website/static/img/blog/19-snapshot-version.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/19-snapshot-version.png -------------------------------------------------------------------------------- /website/static/img/blog/19-validate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/19-validate.png -------------------------------------------------------------------------------- /website/static/img/blog/20-multi-runner.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/20-multi-runner.gif -------------------------------------------------------------------------------- /website/static/img/blog/20-testing-apis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/20-testing-apis.png -------------------------------------------------------------------------------- /website/static/img/blog/22-community.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/22-community.png -------------------------------------------------------------------------------- /website/static/img/blog/22-failure-21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/22-failure-21.png -------------------------------------------------------------------------------- /website/static/img/blog/22-failure-22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/22-failure-22.png -------------------------------------------------------------------------------- /website/static/img/blog/23-asymmetric-matchers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/23-asymmetric-matchers.png -------------------------------------------------------------------------------- /website/static/img/blog/23-async-matchers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/23-async-matchers.png -------------------------------------------------------------------------------- /website/static/img/blog/23-hanging-after.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/23-hanging-after.png -------------------------------------------------------------------------------- /website/static/img/blog/23-hanging-before.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/23-hanging-before.png -------------------------------------------------------------------------------- /website/static/img/blog/23-interactive.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/23-interactive.gif -------------------------------------------------------------------------------- /website/static/img/blog/23-jest-each.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/23-jest-each.png -------------------------------------------------------------------------------- /website/static/img/blog/23-new-matchers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/23-new-matchers.png -------------------------------------------------------------------------------- /website/static/img/blog/23-snapshot-matchers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/23-snapshot-matchers.png -------------------------------------------------------------------------------- /website/static/img/blog/23-typeahead.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/23-typeahead.gif -------------------------------------------------------------------------------- /website/static/img/blog/24-assertion-error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/24-assertion-error.png -------------------------------------------------------------------------------- /website/static/img/blog/24-different-types.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/24-different-types.png -------------------------------------------------------------------------------- /website/static/img/blog/24-mock-function.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/24-mock-function.png -------------------------------------------------------------------------------- /website/static/img/blog/24-todo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/24-todo.png -------------------------------------------------------------------------------- /website/static/img/blog/25-snapshot-change-lines.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/25-snapshot-change-lines.png -------------------------------------------------------------------------------- /website/static/img/blog/25-snapshot-change-substrings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/25-snapshot-change-substrings.png -------------------------------------------------------------------------------- /website/static/img/blog/25-snapshot-insert-lines.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/25-snapshot-insert-lines.png -------------------------------------------------------------------------------- /website/static/img/blog/27-interactive-failures.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/27-interactive-failures.png -------------------------------------------------------------------------------- /website/static/img/blog/28-gh-actions-reporter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/28-gh-actions-reporter.png -------------------------------------------------------------------------------- /website/static/img/blog/Scheduling1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/Scheduling1.png -------------------------------------------------------------------------------- /website/static/img/blog/Scheduling2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/Scheduling2.png -------------------------------------------------------------------------------- /website/static/img/blog/collective.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/collective.png -------------------------------------------------------------------------------- /website/static/img/blog/openjs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/openjs.png -------------------------------------------------------------------------------- /website/static/img/blog/snapshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/blog/snapshot.png -------------------------------------------------------------------------------- /website/static/img/circus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/circus.png -------------------------------------------------------------------------------- /website/static/img/content/camera-with-flash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/content/camera-with-flash.png -------------------------------------------------------------------------------- /website/static/img/content/failedSnapshotTest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/content/failedSnapshotTest.png -------------------------------------------------------------------------------- /website/static/img/content/feature-coverage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/content/feature-coverage.png -------------------------------------------------------------------------------- /website/static/img/content/feature-fast.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/content/feature-fast.png -------------------------------------------------------------------------------- /website/static/img/content/feature-mocking.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/content/feature-mocking.png -------------------------------------------------------------------------------- /website/static/img/content/female-technologist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/content/female-technologist.png -------------------------------------------------------------------------------- /website/static/img/content/interactiveSnapshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/content/interactiveSnapshot.png -------------------------------------------------------------------------------- /website/static/img/content/interactiveSnapshotDone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/content/interactiveSnapshotDone.png -------------------------------------------------------------------------------- /website/static/img/content/interactiveSnapshotUpdate.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/content/interactiveSnapshotUpdate.gif -------------------------------------------------------------------------------- /website/static/img/content/joker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/content/joker.png -------------------------------------------------------------------------------- /website/static/img/content/matchers/toBe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/content/matchers/toBe.png -------------------------------------------------------------------------------- /website/static/img/content/matchers/toBeCloseTo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/content/matchers/toBeCloseTo.png -------------------------------------------------------------------------------- /website/static/img/content/matchers/toEqual.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/content/matchers/toEqual.png -------------------------------------------------------------------------------- /website/static/img/content/matchers/toHaveProperty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/content/matchers/toHaveProperty.png -------------------------------------------------------------------------------- /website/static/img/content/matchers/toMatchSnapshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/content/matchers/toMatchSnapshot.png -------------------------------------------------------------------------------- /website/static/img/content/matchers/toStrictEqual.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/content/matchers/toStrictEqual.png -------------------------------------------------------------------------------- /website/static/img/content/matchers/toThrowError.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/content/matchers/toThrowError.png -------------------------------------------------------------------------------- /website/static/img/content/runner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/content/runner.png -------------------------------------------------------------------------------- /website/static/img/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/favicon.png -------------------------------------------------------------------------------- /website/static/img/favicon/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/favicon/android-chrome-192x192.png -------------------------------------------------------------------------------- /website/static/img/favicon/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/favicon/android-chrome-512x512.png -------------------------------------------------------------------------------- /website/static/img/favicon/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/favicon/apple-touch-icon.png -------------------------------------------------------------------------------- /website/static/img/favicon/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/favicon/favicon-16x16.png -------------------------------------------------------------------------------- /website/static/img/favicon/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/favicon/favicon-32x32.png -------------------------------------------------------------------------------- /website/static/img/favicon/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/favicon/favicon.ico -------------------------------------------------------------------------------- /website/static/img/favicon/mstile-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/favicon/mstile-144x144.png -------------------------------------------------------------------------------- /website/static/img/favicon/mstile-150x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/favicon/mstile-150x150.png -------------------------------------------------------------------------------- /website/static/img/favicon/mstile-310x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/favicon/mstile-310x150.png -------------------------------------------------------------------------------- /website/static/img/favicon/mstile-310x310.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/favicon/mstile-310x310.png -------------------------------------------------------------------------------- /website/static/img/favicon/mstile-70x70.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/favicon/mstile-70x70.png -------------------------------------------------------------------------------- /website/static/img/jest-readme-headline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/jest-readme-headline.png -------------------------------------------------------------------------------- /website/static/img/jest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/jest.png -------------------------------------------------------------------------------- /website/static/img/logos/airbnb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/logos/airbnb.png -------------------------------------------------------------------------------- /website/static/img/logos/facebook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/logos/facebook.png -------------------------------------------------------------------------------- /website/static/img/logos/ibm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/logos/ibm.png -------------------------------------------------------------------------------- /website/static/img/logos/instagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/logos/instagram.png -------------------------------------------------------------------------------- /website/static/img/logos/nyt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/logos/nyt.png -------------------------------------------------------------------------------- /website/static/img/logos/paypal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/logos/paypal.png -------------------------------------------------------------------------------- /website/static/img/logos/pinterest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/logos/pinterest.png -------------------------------------------------------------------------------- /website/static/img/logos/spotify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/logos/spotify.png -------------------------------------------------------------------------------- /website/static/img/logos/twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/logos/twitter.png -------------------------------------------------------------------------------- /website/static/img/opengraph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/opengraph.png -------------------------------------------------------------------------------- /website/static/img/running-card-background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jestjs/jest/76632c6ec3f56708ec5781158972a295d0cc9332/website/static/img/running-card-background.png -------------------------------------------------------------------------------- /website/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | // This file is not used in compilation. It is here just for a nice editor experience. 3 | "extends": "@docusaurus/tsconfig", 4 | "compilerOptions": { 5 | "baseUrl": "." 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /website/versions.json: -------------------------------------------------------------------------------- 1 | [ 2 | "29.7", 3 | "29.6", 4 | "29.5", 5 | "29.4" 6 | ] 7 | --------------------------------------------------------------------------------