New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@guidecx/config-jest

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@guidecx/config-jest

The configuration files for Jest used in GuideCX applications

  • 0.0.1-alpha.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

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:

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:

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:

"scripts": {
  "test": "jest"
}

FAQs

Package last updated on 24 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc