Repository URL to install this package:
|
Version:
4.0.0 ▾
|
@skava/tests
/
README.md
|
|---|
composable test presets with jest & others
batteries included for any setup 1 line ready to go
// #jest.config.js module.exports = require('@skava/tests').jestConfig
more specific to the environment the code is running in so
reactis not loaded innode-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'), }
[tests] configure axios, allow transform on node_modules based on env