Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@comparaonline/ui-config-jest-ts

juorderg3MIT4.8.2

Jest configuration with TypeScript support.

readme

@comparaonline/ui-config-jest-ts

Jest configuration with TypeScript support.

Install

yarn add --dev @comparaonline/ui-config-jest-ts

Usage

In your's project jest.config.js file add

const jestConfig = require('@comparaonline/ui-config-jest-ts');
module.exports = jestConfig;

Usage in @comparaonline-ui

If you use this package in this project (@comparaonline/ui) you will need to add the rootDir in the config, this will let us to run the test suite from the root of the monorepo.

const jestConfig = require('@comparaonline/ui-config-jest-ts');

module.exports = {
  ...jestConfig,
  rootDir: './'
};