Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

jest-changed-files

Package Overview
Dependencies
2
Maintainers
6
Versions
163
Issues
File Explorer

Advanced tools

jest-changed-files

A module used internally by Jest to check which files have changed since you last committed in git or hg.

    29.2.0latest

Version published
Maintainers
6
Weekly downloads
17,382,917
decreased by-12.12%

Weekly downloads

Changelog

Source

29.2.0

Features

  • [@jest/cli, jest-config] A seed for the test run will be randomly generated, or set by a CLI option (#13400)
  • [@jest/cli, jest-config] --show-seed will display the seed value in the report, and can be set via a CLI flag or through the config file (#13400)
  • [jest-config] Add readInitialConfig utility function (#13356)
  • [jest-core] Allow testResultsProcessor to be async (#13343)
  • [@jest/environment, jest-environment-node, jest-environment-jsdom, jest-runtime] Add getSeed() to the jest object (#13400)
  • [expect, @jest/expect-utils] Allow isA utility to take a type argument (#13355)
  • [expect] Expose AsyncExpectationResult and SyncExpectationResult types (#13411)

Fixes

  • [babel-plugin-jest-hoist] Ignore TSTypeQuery when checking for hoisted references (#13367)
  • [jest-core] Fix detectOpenHandles false positives for some special objects such as TLSWRAP (#13414)
  • [jest-mock] Fix mocking of getters and setters on classes (#13398)
  • [jest-reporters] Revert: Transform file paths into hyperlinks (#13399)
  • [@jest/types] Infer type of each table correctly when the table is a tuple or array (#13381)
  • [@jest/types] Rework typings to allow the *ReturnedWith matchers to be called with no argument (#13385)

Chore & Maintenance

  • [*] Update @babel/* deps, resulting in slightly different stack traces for each (#13422)

Performance

  • [jest-runner] Do not instrument v8 coverage data if coverage should not be collected (#13282)

Readme

Source

jest-changed-files

A module used internally by Jest to check which files have changed since you last committed in git or hg.

Install

$ npm install --save jest-changed-files

API

getChangedFilesForRoots(roots: <Array<string>>, options: ?object): Promise<?object>

Get the list of files and repos that have changed since the last commit.

Parameters

roots: Array of string paths gathered from jest roots.

options: Object literal with keys

  • lastCommit: boolean
  • withAncestor: boolean

findRepos(roots: <Array>): Promise<?object>

Get a set of git and hg repositories.

Parameters

roots: Array of string paths gathered from jest roots.

Usage

import {getChangedFilesForRoots} from 'jest-changed-files'; getChangedFilesForRoots(['/path/to/test'], { lastCommit: true, withAncestor: true, }).then(files => { /* { repos: [], changedFiles: [] } */ }); import {findRepos} from 'jest-changed-files'; findRepos(['/path/to/test']).then(repos => { /* { git: Set<Path>, hg: Set<Path> } */ });

FAQs

What is jest-changed-files?

A module used internally by Jest to check which files have changed since you last committed in git or hg.

Is jest-changed-files popular?

The npm package jest-changed-files receives a total of 13,861,286 weekly downloads. As such, jest-changed-files popularity was classified as popular.

Is jest-changed-files well maintained?

We found that jest-changed-files demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 6 open source maintainers collaborating on the project.

Last updated on 14 Oct 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc