Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

jest-changed-files

Package Overview
Dependencies
2
Maintainers
6
Versions
161
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.

    28.1.3latest

Version published
Maintainers
6
Weekly downloads
16,745,024
decreased by-4.2%

Weekly downloads

Changelog

Source

28.1.3

Features

  • [jest-leak-detector] Use native FinalizationRegistry when it exists to get rid of external C dependency (#12973)

Fixes

  • [jest-changed-files] Fix a lock-up after repeated invocations (#12757)
  • [@jest/expect-utils] Fix deep equality of ImmutableJS OrderedSets (#12977)
  • [jest-mock] Add index signature support for spyOn types (#13013, #13020)
  • [jest-snapshot] Fix indentation of awaited inline snapshots (#12986)

Chore & Maintenance

  • [*] Replace internal usage of pretty-format/ConvertAnsi with jest-serializer-ansi-escapes (#12935, #13004)
  • [docs] Update spyOn docs (#13000)

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 15,971,653 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. It has 6 open source maintainers collaborating on the project.

Last updated on 13 Jul 2022
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