UNPKG

fk-react-ui-components

Version:

Step 1 : Create a file in [ Seeds / Plants / Trees ] <br> Step 2 : It should export an Object with component name and story Component [Refer other components] <br> Step 3 : Story Component should return a react component <br> Step 3 : Created file should

90 lines (74 loc) 3.55 kB
// Jest configuration // https://facebook.github.io/jest/docs/en/configuration.html module.exports = { // Modules can be explicitly auto-mocked using jest.mock(moduleName). // https://facebook.github.io/jest/docs/en/configuration.html#automock-boolean automock: false, // [boolean] // Respect Browserify's "browser" field in package.json when resolving modules. // https://facebook.github.io/jest/docs/en/configuration.html#browser-boolean browser: false, // [boolean] // This config option can be used here to have Jest stop running tests after the first failure. // https://facebook.github.io/jest/docs/en/configuration.html#bail-boolean bail: false, // [boolean] // The directory where Jest should store its cached dependency information. // https://facebook.github.io/jest/docs/en/configuration.html#cachedirectory-string // cacheDirectory: '/tmp/<path>', // [string] // Indicates whether the coverage information should be collected while executing the test. // Because this retrofits all executed files with coverage collection statements, // it may significantly slow down your tests. // https://facebook.github.io/jest/docs/en/configuration.html#collectcoverage-boolean // collectCoverage: false, // [boolean] // https://facebook.github.io/jest/docs/en/configuration.html#collectcoveragefrom-array collectCoverageFrom: [ 'components/**/*.{js,jsx}', '!**/node_modules/**', '!**/stories/**', '!**/.storybook/**' ], // https://facebook.github.io/jest/docs/en/configuration.html#coveragedirectory-string coverageDirectory: '<rootDir>/coverage', // [string] // coveragePathIgnorePatterns: // [array<string>] // coverageReporters: [], // [array<string>] // coverageThreshold: {}, // [object] globals: { __DEV__: true }, // https://facebook.github.io/jest/docs/en/configuration.html#mapcoverage-boolean // mapCoverage: false, // [boolean] // The default extensions Jest will look for. // https://facebook.github.io/jest/docs/en/configuration.html#modulefileextensions-array-string moduleFileExtensions: ['js', 'json', 'jsx', 'node'], // moduleDirectories: // [array<string>] // A map from regular expressions to module names that allow to stub out resources, // like images or styles with a single module. moduleNameMapper: { '\\.(css|less|styl|scss|sass|sss)$': 'identity-obj-proxy' }, // modulePathIgnorePatterns: // [array<string>] // modulePaths: // [array<string>] // notify: false, // [boolean] // preset: // [string] // projects: // [array<string>] // clearMocks: // [boolean] // reporters: // [array<moduleName | [moduleName, options]>] // resetMocks: // [boolean] // resetModules: // [boolean] // resolver: // [string] // rootDir: // [string] // roots: // [array<string>] // setupFiles: // [array] // setupTestFrameworkScriptFile: // [string] // snapshotSerializers: // [array<string>] // testEnvironment: // [string] // testMatch: // [array<string>] // testPathIgnorePatterns: // [array<string>] // testRegex: // [string] // testResultsProcessor: // [string] // testRunner: // [string] // testURL: // [string] // timers: // [string] setupTestFrameworkScriptFile: '<rootDir>/setupTests.js', // transformIgnorePatterns: // [array<string>] // unmockedModulePathPatterns: // [array<string>] verbose: true // [boolean] };