Socket
Book a DemoInstallSign in
Socket

@namics/test-suite

Package Overview
Dependencies
Maintainers
7
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@namics/test-suite

jest test suite

latest
npmnpm
Version
0.1.3
Version published
Maintainers
7
Created
Source

Test suite npm

reusable and easy to use jest test suite

Usage

npm i -D @namics/test-suite

This packages uses jest and enzyme please read their documentations for details. Most parts are copied from the Create React App unit test solution.

package.json

  ...
  "scripts": {
    "test": "test-suite --coverage",
    "test:dev": "test-suite",
    ...
  },
  ...

Collect Coverage

package.json

"jest": {
  "collectCoverageFrom": [
	"src/**/*.{js|jsx|ts|tsx}",
	"!src/**/*.stories.{js|jsx|ts|tsx}",
	"!src/dev.ts",
	"!src/index.tsx"
  ]
},

allowed configurations:

keydocumentation
collectCoverageFromhttps://jestjs.io/docs/en/configuration#collectcoveragefrom-array
coverageReportershttps://jestjs.io/docs/en/configuration#coveragereporters-array-string
coverageThresholdhttps://jestjs.io/docs/en/configuration#coveragethreshold-object
resetMockshttps://jestjs.io/docs/en/configuration#resetmocks-boolean
resetModuleshttps://jestjs.io/docs/en/configuration#resetmodules-boolean
snapshotSerializershttps://jestjs.io/docs/en/configuration#snapshotserializers-array-string
watchPathIgnorePatternshttps://jestjs.io/docs/en/configuration#watchpathignorepatterns-array-string

License

MIT License

FAQs

Package last updated on 14 Sep 2018

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