Skip to content

Commit

Permalink
Merge pull request #4322 from nextcloud/backport/4294/stable7
Browse files Browse the repository at this point in the history
[stable7] NcRichContenteditable: fix IME support on Mac OSX
  • Loading branch information
susnux committed Jul 12, 2023
2 parents baa80d2 + 60c8790 commit a5b981b
Show file tree
Hide file tree
Showing 5 changed files with 462 additions and 39 deletions.
91 changes: 91 additions & 0 deletions jest.config.js
@@ -0,0 +1,91 @@
/**
* @copyright Copyright (c) 2020 Marco Ambrosini <marcoambrosini@pm.me>
*
* @author Marco Ambrosini <marcoambrosini@pm.me>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

const ignorePatterns = [
'ansi-regex',
'bail',
'char-regex',
'comma-separated-tokens',
'decode-named-character-reference',
'escape-string-regexp',
'hast-*',
'is-*',
'mdast-util-*',
'micromark',
'property-information',
'rehype-*',
'remark-*',
'space-separated-tokens',
'string-length',
'strip-ansi',
'tributejs',
'trim-lines',
'trough',
'unified',
'unist*',
'vfile',
'vue-material-design-icons',
'web-namespaces',
]

module.exports = {
moduleFileExtensions: [
'js',
'vue',
],

testEnvironment: 'jsdom',
setupFilesAfterEnv: [
'./tests/setup.js',
],

transform: {
'^.+\\.js$': 'babel-jest',
'^.+\\.vue$': '@vue/vue2-jest',
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
},
transformIgnorePatterns: [
'/node_modules/(?!(' + ignorePatterns.join('|') + '))',
],

moduleNameMapper: {
'\\.(css|scss)$': 'jest-transform-stub',
},

snapshotSerializers: [
'<rootDir>/node_modules/jest-serializer-vue',
],

coverageDirectory: './coverage/',
collectCoverage: false,
collectCoverageFrom: [
'<rootDir>/src/**/*.{js,vue}',
'!**/node_modules/**',
],
coverageReporters: [
'json',
'text',
'html',
'lcov',
'clover',
],
}

0 comments on commit a5b981b

Please sign in to comment.