Files
directus/jest.config.js
Rijk van Zanten 571412ff2c Add wysiwyg interface (#460)
* Install tinymce

* Add wysiwyg interface

* Mock window.matchMedia

* Fix wysiwyg not reading data on value change

* Render skeleton loader on top of wysiwyg

* Add hideLoader support to interfaces

* Sneak this little bugfix in unnoticed

It's now passing on the interface / options to the display rendering in render-template
2020-04-23 14:01:27 -04:00

23 lines
571 B
JavaScript

const esModules = ['@popperjs/core'].join('|');
module.exports = {
preset: '@vue/cli-plugin-unit-jest/presets/typescript-and-babel',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
coveragePathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/.jest/'],
transformIgnorePatterns: [`/node_modules/(?!${esModules})`],
setupFilesAfterEnv: ['<rootDir>/.jest/before-all.js'],
restoreMocks: true,
clearMocks: true,
resetMocks: true,
reporters: [
'default',
[
'jest-sonar',
{
outputDirectory: 'coverage',
outputName: 'sonar.xml',
},
],
],
};