2.0.2 • Published 2 years ago

@empathyco/x-jest-utils v2.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

x-jest-utils

Jest extensions for easier testing.

How to install

# or pnpm or yarn
npm install @empathyco/x-jest-utils --save-dev

How to use

To register the extended matchers, just import the package in your tests. The recommended way to do so is using the setupFilesAfterEnv option from your Jest config file.

// File jest.config.js
module.exports = {
  setupFilesAfterEnv: ['./tests.setup.js'],
  testMatch: ['<rootDir>/**/*.spec.js']
};
// File tests.setup.js
import '@empathyco/x-jest-utils';

If you want to find out all the matchers, check the src/jest-utils.types.ts file.

2.0.2

2 years ago

2.0.1-alpha.0

2 years ago

2.0.2-alpha.0

2 years ago

2.0.0

2 years ago

1.4.0-alpha.11

2 years ago

1.4.0-alpha.10

2 years ago

2.0.0-alpha.3

2 years ago

2.0.0-alpha.4

2 years ago

2.0.0-alpha.5

2 years ago

2.0.0-alpha.0

2 years ago

2.0.0-alpha.1

2 years ago

2.0.0-alpha.2

2 years ago

1.4.0-alpha.8

2 years ago

1.4.0-alpha.9

2 years ago

1.4.0-alpha.6

2 years ago

1.4.0-alpha.7

2 years ago

1.4.0-alpha.5

3 years ago

1.4.0-alpha.4

3 years ago

1.4.0-alpha.3

3 years ago

1.4.0-alpha.2

3 years ago

1.4.0-alpha.1

4 years ago

1.4.0-alpha.0

4 years ago

1.3.1-alpha.7

4 years ago

1.3.1-alpha.5

4 years ago

1.3.1-alpha.6

4 years ago

1.3.1-alpha.4

4 years ago

1.3.1-alpha.3

4 years ago

1.3.1-alpha.1

4 years ago

1.3.1-alpha.2

4 years ago

1.3.1-alpha.0

4 years ago