# @guidecx/config-jest

> The configuration files for Jest used in GuideCX applications

Latest version **0.0.1-alpha.0** (published 2021-09-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install @guidecx/config-jest
pnpm add @guidecx/config-jest
yarn add @guidecx/config-jest
bun add @guidecx/config-jest
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1-alpha.0 |
| Published | 2021-09-24 |
| First published | 2021-09-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andrew Garvin |
| Maintainers | walex, dandrewgarvin, kylejw2 |

## Links

- npm: https://www.npmjs.com/package/@guidecx/config-jest
- Repository: https://github.com/guidecx/ether
- Homepage: https://github.com/guidecx/ether#readme
- Issues: https://github.com/guidecx/ether/issues
- npm.io page: https://npm.io/package/@guidecx/config-jest

## Recent versions

- 0.0.1-alpha.0 (latest) — 2021-09-24

## README

# `GCX Jest Config`

This module contains the configuration files for Jest that are used by all GuideCX applications.

As with many of our other packages, you'll need to make sure you have the proper `devDependencies`
installed for this library to have any effect. For this package you'll need:

- `jest`
- `jest-transform-graphql`
- `babel-jest`
- `jest-environment-jsdom-fifteen`
- `jest-watch-typeahead`

Some of the config options require special packages, other than the packages previously mentioned.
If not using these packages, such as those related to graphql, override the relevant properties on
the config options object. For example:

```typescript
import type { Config } from '@jest/types';

const config: Config.InitialOptions = {
  ...require('../config-jest'),
  setupFiles: [],
  setupFilesAfterEnv: [],
  transform: {
    '\\.[jt]sx?$': 'babel-jest',
    '^.+\\.(ts|tsx)$': 'ts-jest',
  },
};

export default config;
```

## Installing library into another project

We have 2 variant files that are exposed to other applications; `express` and `react`. Depending on
the type of application you're importing configurations too, you can do the following in your
`jest.config.js` file:

```javascript
module.exports = {
  ...require('@guidecx/config-jest/react'),
  // overwrite config options as-needed
};
```

Once this is complete, verify that you have the following configuration options in your
`package.json`:

```javascript
"scripts": {
  "test": "jest"
}
```

---
_Source: https://npm.io/package/@guidecx/config-jest · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
