* Always mock metadata/chrome in OSS * Enable jest env in jest mocks * Exclude jest mocks in karma bundles * Use setupFilesAfterEnv in config * Remove chrome/metadata mock from x-pack * Remove kuery mock * Add missing mock to SIEM test * Fix typo in mock import * Remove top level capabilities x-pack mock * Move kfetch mock to ui/public * Move moment-timezone to mocks file * Unmock kfetch in kfetch specific tests * Make kfetch mock manual * Removed unnecessary jest.mock * Remove kfetch unmocks
23 lines
397 B
JavaScript
23 lines
397 B
JavaScript
module.exports = {
|
|
overrides: [
|
|
{
|
|
files: [
|
|
'**/*.{test,test.mocks,mock}.{js,ts,tsx}',
|
|
'**/__mocks__/**/*.{js,ts,tsx}',
|
|
],
|
|
plugins: [
|
|
'jest',
|
|
],
|
|
|
|
env: {
|
|
'jest': true,
|
|
},
|
|
|
|
rules: {
|
|
'jest/no-focused-tests': 'error',
|
|
'jest/no-identical-title': 'error',
|
|
'import/order': 'off'
|
|
},
|
|
}
|
|
]
|
|
};
|