facebook / jest

Compare 5f7ae21 ... +0 ... 91b94c8

Coverage Reach
packages/expect/src/spyMatchers.ts packages/expect/src/matchers.ts packages/expect/src/utils.ts packages/expect/src/toThrowMatchers.ts packages/expect/src/index.ts packages/expect/src/jasmineUtils.ts packages/expect/src/asymmetricMatchers.ts packages/expect/src/print.ts packages/expect/src/jestMatchersObject.ts packages/expect/src/extractExpectedAssertionsErrors.ts packages/jest-core/src/watch.ts packages/jest-core/src/TestScheduler.ts packages/jest-core/src/SearchSource.ts packages/jest-core/src/plugins/UpdateSnapshotsInteractive.ts packages/jest-core/src/plugins/FailedTestsInteractive.ts packages/jest-core/src/plugins/TestPathPattern.ts packages/jest-core/src/plugins/TestNamePattern.ts packages/jest-core/src/plugins/UpdateSnapshots.ts packages/jest-core/src/plugins/Quit.ts packages/jest-core/src/lib/updateGlobalConfig.ts packages/jest-core/src/lib/watchPluginsHelpers.ts packages/jest-core/src/lib/activeFiltersMessage.ts packages/jest-core/src/lib/handleDeprecationWarnings.ts packages/jest-core/src/lib/logDebugMessages.ts packages/jest-core/src/lib/isValidPath.ts packages/jest-core/src/lib/createContext.ts packages/jest-core/src/SnapshotInteractiveMode.ts packages/jest-core/src/runJest.ts packages/jest-core/src/FailedTestsInteractiveMode.ts packages/jest-core/src/collectHandles.ts packages/jest-core/src/ReporterDispatcher.ts packages/jest-core/src/getNoTestFoundVerbose.ts packages/jest-core/src/runGlobalHook.ts packages/jest-core/src/TestNamePatternPrompt.ts packages/jest-core/src/TestPathPatternPrompt.ts packages/jest-core/src/getSelectProjectsMessage.ts packages/jest-core/src/FailedTestsCache.ts packages/jest-core/src/getChangedFilesPromise.ts packages/jest-core/src/testSchedulerHelper.ts packages/jest-core/src/TestWatcher.ts packages/jest-core/src/getNoTestFoundRelatedToChangedFiles.ts packages/jest-core/src/getNoTestsFoundMessage.ts packages/jest-core/src/getProjectNamesMissingWarning.ts packages/jest-core/src/getNoTestFound.ts packages/jest-core/src/getNoTestFoundFailed.ts packages/jest-core/src/getConfigsOfProjectsToRun.ts packages/jest-core/src/version.ts packages/jest-core/src/getNoTestFoundPassWithNoTests.ts packages/jest-core/src/pluralize.ts packages/jest-core/src/getProjectDisplayName.ts packages/jest-jasmine2/src/jasmine/Env.ts packages/jest-jasmine2/src/jasmine/Spec.ts packages/jest-jasmine2/src/jasmine/Suite.ts packages/jest-jasmine2/src/jasmine/spyRegistry.ts packages/jest-jasmine2/src/jasmine/jasmineLight.ts packages/jest-jasmine2/src/jasmine/JsApiReporter.ts packages/jest-jasmine2/src/jasmine/SpyStrategy.ts packages/jest-jasmine2/src/jasmine/CallTracker.ts packages/jest-jasmine2/src/jasmine/ReportDispatcher.ts packages/jest-jasmine2/src/jasmine/createSpy.ts packages/jest-jasmine2/src/jasmine/Timer.ts packages/jest-jasmine2/src/jasmineAsyncInstall.ts packages/jest-jasmine2/src/index.ts packages/jest-jasmine2/src/reporter.ts packages/jest-jasmine2/src/assertionErrorMessage.ts packages/jest-jasmine2/src/setup_jest_globals.ts packages/jest-jasmine2/src/expectationResultFactory.ts packages/jest-jasmine2/src/treeProcessor.ts packages/jest-jasmine2/src/PCancelable.ts packages/jest-jasmine2/src/queueRunner.ts packages/jest-jasmine2/src/jestExpect.ts packages/jest-jasmine2/src/errorOnPrivate.ts packages/jest-jasmine2/src/pTimeout.ts packages/jest-jasmine2/src/each.ts packages/jest-jasmine2/src/isError.ts packages/jest-haste-map/src/index.ts packages/jest-haste-map/src/watchers/NodeWatcher.js packages/jest-haste-map/src/watchers/WatchmanWatcher.js packages/jest-haste-map/src/watchers/FSEventsWatcher.ts packages/jest-haste-map/src/watchers/common.js packages/jest-haste-map/src/watchers/RecrawlWarning.js packages/jest-haste-map/src/crawlers/watchman.ts packages/jest-haste-map/src/crawlers/node.ts packages/jest-haste-map/src/ModuleMap.ts packages/jest-haste-map/src/lib/dependencyExtractor.ts packages/jest-haste-map/src/lib/getPlatformExtension.ts packages/jest-haste-map/src/lib/fast_path.ts packages/jest-haste-map/src/lib/isRegExpSupported.ts packages/jest-haste-map/src/lib/normalizePathSep.ts packages/jest-haste-map/src/HasteFS.ts packages/jest-haste-map/src/worker.ts packages/jest-haste-map/src/getMockName.ts packages/jest-haste-map/src/constants.ts packages/jest-haste-map/src/blacklist.ts packages/jest-reporters/src/utils.ts packages/jest-reporters/src/CoverageReporter.ts packages/jest-reporters/src/SummaryReporter.ts packages/jest-reporters/src/Status.ts packages/jest-reporters/src/DefaultReporter.ts packages/jest-reporters/src/VerboseReporter.ts packages/jest-reporters/src/NotifyReporter.ts packages/jest-reporters/src/getSnapshotSummary.ts packages/jest-reporters/src/getResultHeader.ts packages/jest-reporters/src/getSnapshotStatus.ts packages/jest-reporters/src/BaseReporter.ts packages/jest-reporters/src/generateEmptyCoverage.ts packages/jest-reporters/src/getWatermarks.ts packages/jest-reporters/src/CoverageWorker.ts packages/jest-reporters/src/index.ts packages/jest-config/src/normalize.ts packages/jest-config/src/index.ts packages/jest-config/src/utils.ts packages/jest-config/src/setFromArgv.ts packages/jest-config/src/readConfigFileAndSetRootDir.ts packages/jest-config/src/resolveConfigPath.ts packages/jest-config/src/getMaxWorkers.ts packages/jest-config/src/ReporterValidationErrors.ts packages/jest-config/src/constants.ts packages/jest-config/src/color.ts packages/jest-config/src/Deprecated.ts packages/jest-config/src/getCacheDirectory.ts packages/jest-config/src/validatePattern.ts packages/jest-config/src/Defaults.ts packages/jest-config/src/ValidConfig.ts packages/jest-config/src/Descriptions.ts packages/jest-runtime/src/index.ts packages/jest-runtime/src/helpers.ts packages/jest-snapshot/src/index.ts packages/jest-snapshot/src/InlineSnapshots.ts packages/jest-snapshot/src/printSnapshot.ts packages/jest-snapshot/src/State.ts packages/jest-snapshot/src/utils.ts packages/jest-snapshot/src/dedentLines.ts packages/jest-snapshot/src/SnapshotResolver.ts packages/jest-snapshot/src/mockSerializer.ts packages/jest-snapshot/src/colors.ts packages/jest-snapshot/src/plugins.ts packages/jest-circus/src/utils.ts packages/jest-circus/src/legacy-code-todo-rewrite/jestAdapterInit.ts packages/jest-circus/src/legacy-code-todo-rewrite/jestAdapter.ts packages/jest-circus/src/legacy-code-todo-rewrite/jestExpect.ts packages/jest-circus/src/eventHandler.ts packages/jest-circus/src/run.ts packages/jest-circus/src/index.ts packages/jest-circus/src/formatNodeAssertErrors.ts packages/jest-circus/src/state.ts packages/jest-circus/src/globalErrorHandlers.ts packages/jest-circus/src/testCaseReportHandler.ts packages/jest-circus/src/types.ts packages/jest-circus/runner.js packages/jest-worker/src/workers/ChildProcessWorker.ts packages/jest-worker/src/workers/NodeThreadsWorker.ts packages/jest-worker/src/workers/processChild.ts packages/jest-worker/src/workers/threadChild.ts packages/jest-worker/src/workers/messageParent.ts packages/jest-worker/src/__performance_tests__/test.js packages/jest-worker/src/__performance_tests__/workers/pi.js packages/jest-worker/src/__performance_tests__/workers/worker_farm.js packages/jest-worker/src/__performance_tests__/workers/jest_worker.js packages/jest-worker/src/Farm.ts packages/jest-worker/src/PriorityQueue.ts packages/jest-worker/src/base/BaseWorkerPool.ts packages/jest-worker/src/index.ts packages/jest-worker/src/FifoQueue.ts packages/jest-worker/src/WorkerPool.ts packages/jest-worker/src/types.ts packages/jest-diff/src/cleanupSemantic.ts packages/jest-diff/src/joinAlignedDiffs.ts packages/jest-diff/src/getAlignedDiffs.ts packages/jest-diff/src/printDiffs.ts packages/jest-diff/src/index.ts packages/jest-diff/src/diffLines.ts packages/jest-diff/src/diffStrings.ts packages/jest-diff/src/normalizeDiffOptions.ts packages/jest-diff/src/constants.ts packages/pretty-format/src/plugins/Immutable.ts packages/pretty-format/src/plugins/DOMElement.ts packages/pretty-format/src/plugins/ConvertAnsi.ts packages/pretty-format/src/plugins/ReactElement.ts packages/pretty-format/src/plugins/lib/markup.ts packages/pretty-format/src/plugins/lib/escapeHTML.ts packages/pretty-format/src/plugins/AsymmetricMatcher.ts packages/pretty-format/src/plugins/DOMCollection.ts packages/pretty-format/src/plugins/ReactTestComponent.ts packages/pretty-format/src/index.ts packages/pretty-format/src/collections.ts packages/jest-mock/src/index.ts packages/jest-transform/src/ScriptTransformer.ts packages/jest-transform/src/shouldInstrument.ts packages/jest-transform/src/enhanceUnexpectedTokenMessage.ts packages/jest-resolve/src/resolver.ts packages/jest-resolve/src/defaultResolver.ts packages/jest-resolve/src/shouldLoadAsEsm.ts packages/jest-resolve/src/utils.ts packages/jest-resolve/src/nodeModulesPaths.ts packages/jest-resolve/src/ModuleNotFoundError.ts packages/jest-resolve/src/isBuiltinModule.ts packages/jest-matcher-utils/src/index.ts packages/jest-matcher-utils/src/deepCyclicCopyReplaceable.ts packages/jest-matcher-utils/src/Replaceable.ts packages/jest-fake-timers/src/legacyFakeTimers.ts packages/jest-fake-timers/src/modernFakeTimers.ts packages/diff-sequences/src/index.ts packages/jest-runner/src/runTest.ts packages/jest-runner/src/index.ts packages/jest-runner/src/testWorker.ts packages/jest-util/src/createProcessObject.ts packages/jest-util/src/deepCyclicCopy.ts packages/jest-util/src/globsToMatcher.ts packages/jest-util/src/requireOrImportModule.ts packages/jest-util/src/convertDescriptorToString.ts packages/jest-util/src/installCommonGlobals.ts packages/jest-util/src/ErrorWithStack.ts packages/jest-util/src/formatTime.ts packages/jest-util/src/preRunMessage.ts packages/jest-util/src/tryRealpath.ts packages/jest-util/src/specialChars.ts packages/jest-util/src/createDirectory.ts packages/jest-util/src/isPromise.ts packages/jest-util/src/clearLine.ts packages/jest-util/src/interopRequireDefault.ts packages/jest-util/src/replacePathSepForGlob.ts packages/jest-util/src/setGlobal.ts packages/jest-util/src/pluralize.ts packages/jest-util/src/isInteractive.ts packages/jest-util/src/testPathPatternToRegExp.ts packages/jest-validate/src/validate.ts packages/jest-validate/src/validateCLIOptions.ts packages/jest-validate/src/utils.ts packages/jest-validate/src/condition.ts packages/jest-validate/src/errors.ts packages/jest-validate/src/deprecated.ts packages/jest-validate/src/warnings.ts packages/jest-validate/src/exampleConfig.ts packages/jest-validate/src/defaultConfig.ts packages/jest-console/src/BufferedConsole.ts packages/jest-console/src/CustomConsole.ts packages/jest-console/src/getConsoleOutput.ts packages/jest-console/src/NullConsole.ts packages/jest-message-util/src/index.ts packages/jest-watcher/src/lib/Prompt.ts packages/jest-watcher/src/lib/formatTestNameByPattern.ts packages/jest-watcher/src/lib/patternModeHelpers.ts packages/jest-watcher/src/lib/scroll.ts packages/jest-watcher/src/lib/colorize.ts packages/jest-watcher/src/JestHooks.ts packages/jest-watcher/src/PatternPrompt.ts packages/jest-watcher/src/BaseWatchPlugin.ts packages/jest-watcher/src/constants.ts packages/jest-each/src/table/array.ts packages/jest-each/src/table/interpolation.ts packages/jest-each/src/table/template.ts packages/jest-each/src/index.ts packages/jest-each/src/validation.ts packages/jest-each/src/bind.ts packages/babel-plugin-jest-hoist/src/index.ts packages/jest-cli/src/init/index.ts packages/jest-cli/src/init/generateConfigFile.ts packages/jest-cli/src/init/modifyPackageJson.ts packages/jest-cli/src/init/errors.ts packages/jest-cli/src/init/questions.ts packages/jest-changed-files/src/git.ts packages/jest-changed-files/src/index.ts packages/jest-changed-files/src/hg.ts packages/babel-jest/src/index.ts packages/jest-resolve-dependencies/src/index.ts packages/test-utils/src/alignedAnsiStyleSerializer.ts packages/test-utils/src/config.ts packages/test-utils/src/ConditionalTest.ts packages/jest-test-result/src/helpers.ts packages/jest-test-result/src/formatTestResults.ts packages/jest-docblock/src/index.ts packages/jest-test-sequencer/src/index.ts packages/jest-environment-jsdom/src/index.ts packages/jest-environment-node/src/index.ts packages/jest-get-type/src/index.ts packages/jest-source-map/src/getCallsite.ts packages/jest-leak-detector/src/index.ts packages/jest-phabricator/src/index.ts packages/jest-create-cache-key-function/src/index.ts packages/jest-regex-util/src/index.ts packages/jest-serializer/src/index.ts packages/babel-preset-jest/index.js packages/jest-globals/src/index.ts e2e/coverage-report/sum.js e2e/coverage-report/notRequiredInTestSuite.js e2e/coverage-report/cached-duplicates/a/identical.js e2e/coverage-report/cached-duplicates/b/identical.js e2e/coverage-report/sumDependency.js e2e/coverage-report/otherFile.js e2e/coverage-report/file.js e2e/v8-coverage/no-sourcemap/Thing.js e2e/v8-coverage/no-sourcemap/x.css e2e/v8-coverage/empty-sourcemap/types.ts e2e/babel-plugin-jest-hoist/__test_modules__/Unmocked.js e2e/babel-plugin-jest-hoist/__test_modules__/Mocked.js e2e/babel-plugin-jest-hoist/__test_modules__/b.js e2e/babel-plugin-jest-hoist/__test_modules__/c.js e2e/babel-plugin-jest-hoist/__test_modules__/e.js e2e/babel-plugin-jest-hoist/__test_modules__/a.js e2e/babel-plugin-jest-hoist/__test_modules__/d.js e2e/babel-plugin-jest-hoist/mockFile.js e2e/transform/transformer-config/this-directory-is-covered/Covered.js e2e/transform/babel-jest/this-directory-is-covered/covered.js e2e/coverage-remapping/covered.ts e2e/coverage-handlebars/greet.hbs e2e/coverage-transform-instrumented/covered.js e2e/pnp/undeclared-dependency/index.js e2e/pnp/lib/index.js e2e/typescript-coverage/covered.ts e2e/json-reporter/sum.js e2e/stack-trace-source-maps-with-coverage/lib.ts

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

2 untracked files changed.
Other files ignored by Codecov

No tracked files changed.

Learn more Showing 1 files with coverage changes found.

Changes in packages/expect/src/utils.ts
-1
+1
Loading file...
Files Coverage
e2e 83.13%
packages 0.01% 68.94%
Project Totals (312 files) 69.01%
Loading