Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
  dist
  src
  package.json
  .yarnrc
  CHANGELOG.md
  example.d.ts
  globals.d.ts
  index.js
  jest.config.js
  Makefile
  README.md
  setup.js
  tsconfig.json
  yarn.lock
Size: Mime:
  README.md

Tests

composable test presets with jest & others

Example

minimal

batteries included for any setup 1 line ready to go

// #jest.config.js
module.exports = require('@skava/tests').jestConfig

presets

more specific to the environment the code is running in so react is not loaded in node-only projects for example full customization, but still all the pre-build pieces available

// ### jest.config.setup.js ###
const { setupTestFrameworkScript } = require('@skava/tests')

module.exports = setupTestFrameworkScript({
  shouldUseJsdom: false,
  shouldUseEnzyme: false,
  shouldUseReactTestingLibrary: false,
  shouldUseExotic: true,
  shouldUseStoryBook: false,
  shouldUseSonarQube: false,
})


// ### jest.config.js ###
const { setupJestConfig } = require('@skava/tests')
module.exports = {
  ...setupJestConfig(),
  setupTestFrameworkScriptFile: require.resolve('./jest.config.setup.js'),
}

Jest

Typescript

[tests] configure axios, allow transform on node_modules based on env