6.0.2 • Published 11 months ago

@checkdigit/jest-config v6.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

jest-config

MIT License

Copyright (c) 2023–2024 Check Digit, LLC

Check Digit Jest presets and configuration.

Install

$ npm i @checkdigit/jest-config --save-dev

Note that @checkdigit/jest-config automatically brings in the correct versions of jest, ts-jest and @jest/globals via peerDependencies. Do not install these packages separately.

ESM

@checkdigit/jest-config is now ESM only.

It only supports testing with ESM modules, i.e., you must have "type": "module" in your package.json file.

Note that the Node --experimental-vm-modules flag is required for ESM modules. See the Jest docs for more information.

.env

The project .env file is automatically loaded via process.loadEnvFile() (available in Node.js 20.12 or later).

Example

ESM package.json

Note: this requires Node.js v20.11 or later.

{
  // ...
  "type": "module",
  "scripts": {
    "test": "NODE_OPTIONS=\"--disable-warning ExperimentalWarning --experimental-vm-modules\" jest --coverage=false"
    "test:coverage": "NODE_OPTIONS=\"--disable-warning ExperimentalWarning --experimental-vm-modules\" jest --coverage=true"
  }
  // ...
  "jest": {
    "preset": "@checkdigit/jest-config"
  }
}

License

MIT

7.0.0-PR.36-3858

12 months ago

7.0.0-PR.36-c7ed

11 months ago

6.0.2

1 year ago

6.0.1

1 year ago

6.0.0

1 year ago

5.0.0

2 years ago

5.0.0-PR.28-30bd

2 years ago

5.0.0-PR.28-1b87

2 years ago

5.0.0-PR.28-b609

2 years ago

5.0.0-PR.28-034e

2 years ago

5.0.0-PR.28-6d10

2 years ago

5.0.0-PR.28-6fa0

2 years ago

5.0.0-PR.28-9967

2 years ago

5.0.0-PR.28-b5ad

2 years ago

4.1.0-PR.28-d494

2 years ago

4.0.0-PR.26-2160

2 years ago

4.0.0-PR.26-2c22

2 years ago

4.0.0

2 years ago

4.0.0-PR.26-ab6d

2 years ago

3.1.1-PR.23-91b6

2 years ago

4.0.0-PR.26-9c7c

2 years ago

3.0.0-PR.22-5cb9

2 years ago

3.1.0-PR.22-cfb7

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.1.0-PR.22-ca04

2 years ago

3.0.0-PR.20-17fc

2 years ago

3.0.0

2 years ago

3.0.0-PR.20-9d1e

2 years ago

3.0.0-PR.19-b930

2 years ago

3.1.0-PR.22-81b1

2 years ago

3.1.0-PR.22-bbd8

2 years ago

3.1.0-PR.22-a056

2 years ago

2.3.0-PR.17-a7fa

2 years ago

2.3.0-PR.17-25af

2 years ago

2.2.1-PR.8-b632

2 years ago

2.2.1-PR.8-7a69

2 years ago

2.3.0-PR.14-1192

2 years ago

2.2.1-PR.8-4efb

2 years ago

2.3.0

2 years ago

2.2.1-PR.8-89d8

2 years ago

2.2.1-PR.8-0cbf

2 years ago

2.2.1-PR.8-9882

2 years ago

2.2.1-PR.8-9964

2 years ago

2.2.1-PR.8-9697

2 years ago

2.2.1-PR.8-9334

2 years ago

2.2.1-PR.8-4cf4

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.1.0-PR.8-a2ef

2 years ago

2.1.0-PR.8-da89

2 years ago

2.1.0-PR.8-b37c

2 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago