Socket
Socket
Sign inDemoInstall

jest-changed-files

Package Overview
Dependencies
18
Maintainers
6
Versions
172
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 29.2.0 to 29.4.0

.eslintcache

4

package.json
{
"name": "jest-changed-files",
"version": "29.2.0",
"version": "29.4.0",
"repository": {

@@ -29,3 +29,3 @@ "type": "git",

},
"gitHead": "ee5b37a4f4433afcfffb0356cea47739d8092287"
"gitHead": "4bc0e8acaf990e6618a7bed1dca67760c20bb12a"
}

@@ -13,3 +13,3 @@ # jest-changed-files

### `getChangedFilesForRoots(roots: <Array<string>>, options: ?object): Promise<?object>`
### `getChangedFilesForRoots(roots: Array<string>, options: Options): Promise<ChangedFiles>`

@@ -26,5 +26,15 @@ Get the list of files and repos that have changed since the last commit.

- withAncestor: boolean
- changedSince: string
### findRepos(roots: <Array<string>>): Promise<?object>
### Returns
A Promise of Object literal with keys
- changedFiles: Set\<string>
- repos:
- git: Set\<string>
- hg: Set\<string>
### findRepos(roots: Array<string>): Promise<Repos>
Get a set of git and hg repositories.

@@ -36,2 +46,9 @@

### Returns
A Promise of Object literal with keys
- git: Set\<string>
- hg: Set\<string>
## Usage

@@ -56,2 +73,17 @@

```javascript
import {getChangedFilesForRoots} from 'jest-changed-files';
getChangedFilesForRoots(['/path/to/test'], {
changedSince: 'main',
}).then(files => {
/*
{
repos: [],
changedFiles: []
}
*/
});
```
```javascript
import {findRepos} from 'jest-changed-files';

@@ -58,0 +90,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc