Skip to content
jest-config / 1.0.2

jest-config 1.0.2

Install from the command line:
Learn more about npm packages
$ npm install @jobgetapp/jest-config@1.0.2
Install via package.json:
"@jobgetapp/jest-config": "1.0.2"

About this version

@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/"
    ],
  }
}

Details


Assets

  • jest-config-1.0.2.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0