6.0.2 • Published 7 hours ago

@checkdigit/jest-config v6.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 hours 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

6.0.2-PR.34-f715

8 hours ago

6.0.2

7 hours ago

6.0.1

9 days ago

6.0.0-PR.30-07c1

3 months ago

6.0.0-PR.30-cf06

3 months ago

6.0.0

3 months ago

5.0.0

5 months ago

5.0.0-PR.28-30bd

5 months ago

5.0.0-PR.28-1b87

5 months ago

5.0.0-PR.28-b609

5 months ago

5.0.0-PR.28-034e

5 months ago

5.0.0-PR.28-6d10

5 months ago

5.0.0-PR.28-6fa0

5 months ago

5.0.0-PR.28-9967

5 months ago

5.0.0-PR.28-b5ad

5 months ago

4.1.0-PR.28-d494

5 months ago

4.0.0-PR.26-2160

5 months ago

4.0.0-PR.26-2c22

5 months ago

4.0.0

5 months ago

4.0.0-PR.26-ab6d

5 months ago

3.1.1-PR.23-91b6

6 months ago

4.0.0-PR.26-9c7c

6 months ago

3.0.0-PR.22-5cb9

9 months ago

3.1.0-PR.22-cfb7

9 months ago

3.1.1

6 months ago

3.1.0

8 months ago

3.1.0-PR.22-ca04

8 months ago

3.0.0-PR.20-17fc

10 months ago

3.0.0

10 months ago

3.0.0-PR.20-9d1e

10 months ago

3.0.0-PR.19-b930

10 months ago

3.1.0-PR.22-81b1

8 months ago

3.1.0-PR.22-bbd8

8 months ago

3.1.0-PR.22-a056

9 months ago

2.3.0-PR.17-a7fa

11 months ago

2.3.0-PR.17-25af

11 months ago

2.2.1-PR.8-b632

11 months ago

2.2.1-PR.8-7a69

11 months ago

2.3.0-PR.14-1192

11 months ago

2.2.1-PR.8-4efb

11 months ago

2.3.0

11 months ago

2.2.1-PR.8-89d8

11 months ago

2.2.1-PR.8-0cbf

11 months ago

2.2.1-PR.8-9882

11 months ago

2.2.1-PR.8-9964

11 months ago

2.2.1-PR.8-9697

11 months ago

2.2.1-PR.8-9334

11 months ago

2.2.1-PR.8-4cf4

11 months ago

2.2.1

1 year ago

2.2.0

1 year ago

2.1.0-PR.8-a2ef

1 year ago

2.1.0-PR.8-da89

1 year ago

2.1.0-PR.8-b37c

1 year ago

2.1.0

1 year ago

2.0.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago