You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

jest-sorted

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-sorted

Inspired by chai sorted and jest-extended.

1.0.1
Source
npmnpm
Version published
Weekly downloads
19K
-25.37%
Maintainers
1
Weekly downloads
 
Created
Source

Jest Sorted

Inspired by chai sorted and jest-extended.

Installation

With npm:

npm install --save-dev jest-sorted

With yarn:

yarn add -D jest-sorted

Setup

Jest >v24

Add jest-sorted to your Jest setupFilesAfterEnv configuration. See for help

"jest": {
  "setupFilesAfterEnv": ["jest-sorted"]
}

Jest <v23

"jest": {
  "setupTestFrameworkScriptFile": "jest-sorted"
}

If you are already using another test framework, like jest-chain, then you should create a test setup file and require each of the frameworks you are using.

For example:

// ./testSetup.js
require("jest-sorted");
require("jest-chain");
require("any other test framework libraries you are using");

Then in your Jest config:

"jest": {
  "setupTestFrameworkScriptFile": "./testSetup.js"
}

Typescript

  • Coming soon...

FAQs

Package last updated on 15 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts