* adding more tests - covers article.jsx and elements created from its props and state - added png as static file that needs stubbing * video + channelDetails test coverage * chat + channels tests * channels cc refactor * yarn install * update snapshot and string spacing * chat.jsx test mostly tests rendering elements - does not test imported components, as those are already tested separately - does not imported functions from actions or utils as those will be tested separately as well * cleaning up - mocked response with flush promises for state/component to reflect appropriate changes * snapshot updates
13 lines
445 B
JavaScript
13 lines
445 B
JavaScript
module.exports = {
|
|
collectCoverageFrom: [
|
|
'app/javascript/src/**/*.{js,jsx}',
|
|
// This exclusion avoids running coverage on Barrel files, https://twitter.com/housecor/status/981558704708472832
|
|
'!app/javascript/src/**/components/**/index.js',
|
|
'!**/__tests__/**',
|
|
'!**/__stories__/**',
|
|
],
|
|
moduleNameMapper: {
|
|
'\\.(svg|png)$': '<rootDir>/empty-module.js',
|
|
},
|
|
snapshotSerializers: ['preact-render-spy/snapshot'],
|
|
};
|