@jobgetapp/jest-config
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

@jobgetapp/jest-config

Project Description

The base jest configuration used for JobGet projects. Assumption that source code is stored with the following directory structure:

  .
  ├── ...
  ├── project_folder   # Folder containing the project content
  │   ├── package.json
  │   ├── jest.config.js
  │   ├── src
  │       ├── tsconfig.json
  │       ├── .eslintrc.js
  │       └── ...
  │   ├── test
  │       ├── tsconfig.json
  │       ├── .eslintrc.js
  │       └── ...
  └── ...

Usage

This project also includes a custom reporter to handler issues where Jest writes reports to stdErr, causing rush to detect successful test cases as errors.

# jest.config.js

import type { Config } from '@jest/types'
import { JestConfig } from '@jobgetapp/jest-config'

export default async (): Promise<Config.InitialOptions> => {
  return {
    ...(await JestConfig()),
    coveragePathIgnorePatterns: [
      # Exclude files containing only typescript data
      # contracts from coverage output
      "/contracts/"
    ],
  }
}

Readme

Keywords

Package Sidebar

Install

npm i @jobgetapp/jest-config

Weekly Downloads

12

Version

1.2.0

License

MIT

Unpacked Size

45.8 kB

Total Files

15

Last publish

Collaborators

  • sawyerhopkins