Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

blueflag-test

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blueflag-test

An oppinionated set of linting and testing tools

  • 0.23.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
39
decreased by-43.48%
Maintainers
2
Weekly downloads
 
Created
Source

blueflag-test

Installation

yarn add --dev blueflag-test

package.json

{
    "scripts": {
        "flow": "blueflag-test flow",
        "flow-coverage": "blueflag-test flow-coverage",
        "lint": "blueflag-test lint",
        "test": "yarn jest",
        "test-all": "yarn lint && yarn flow && yarn test && yarn flow-coverage"
    }
}

jest.config.js

blueflag-test pre loads jest with support for [enzyme] with the jest-enzyme package. This loads enzyme-adapter-16 into each test file, gives you the shallow, mount and render globals, and extends expect with some handy enzyme matchers.

module.exports = {
    preset 'blueflag-test',
    ...config overrides
}

.flowconfig

You might need to shim some flow types

  1. If you are using immutable 3.8.x
  2. If you are testing with any enzyme globals
[libs]
./node_modules/blueflag-test/flow-typed-shims/immutable-3.8.x/
./node_modules/blueflag-test/flow-typed-shims/jest-enzyme-6.0.x/

[ignore]
<PROJECT_ROOT>/node_modules/immutable

FAQs

Package last updated on 14 Aug 2019

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