quilt-lens-component
Version:
Lens for images and vidoes
22 lines (18 loc) • 849 B
JavaScript
module.exports = {
// Stop running tests after the first failure
bail: false,
// Automatically clear mock calls and instances between every test
clearMocks: true,
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
testPathIgnorePatterns: [
'/node_modules/',
'/lib/*.js'
],
// A map from regular expressions to module names that allow to stub out resources with a single module
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/__mocks__/fileMock.js',
'\\.(css|scss|less)$': '<rootDir>/__mocks__/styleMock.js'
},
// The path to a module that runs some code to configure or set up the testing framework before each test
setupTestFrameworkScriptFile: '<rootDir>tests/setupTests.jsx',
};