Skip to content

Commit

Permalink
Adjust jest transformIgnorePatterns for NcRichText
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
  • Loading branch information
raimund-schluessler committed Mar 2, 2023
1 parent 2266d20 commit 5593202
Showing 1 changed file with 28 additions and 11 deletions.
39 changes: 28 additions & 11 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,41 @@

// TODO: find a way to consolidate this in one place, with webpack.common.js
const ignorePatterns = [
'vue-material-design-icons',
'@juliushaertl',
'tributejs',
'@nextcloud/vue',
'splitpanes',
'string-length',
'strip-ansi',
'ansi-regex',
'char-regex',
'uuid',
'(vue-material-design-icons)',
'(@juliushaertl)',
'(tributejs)',
'(@nextcloud/vue)',
'(splitpanes)',
'(string-length)',
'(strip-ansi)',
'(ansi-regex)',
'(char-regex)',
'(uuid)',
'(unist*)',
'(unified)',
'(bail)',
'(remark*)',
'(is-*)',
'(trough)',
'(vfile)',
'(mdast*)',
'(micromark)',
'(decode-named-character-reference)',
'(trim-lines)',
'(rehype*)',
'(hast-*)',
'(property-information)',
'(space-separated-tokens)',
'(comma-separated-tokens)',
'(web-namespaces)',
]

module.exports = {

// Allow tests in the src and in tests/unit folders
testMatch: ['<rootDir>/src/**/*.(spec|test).(ts|js)'],
transformIgnorePatterns: [
'node_modules/(?!(' + ignorePatterns.join('|') + ')/)',
'node_modules/(?!' + ignorePatterns.join('|') + '/)',
],
resetMocks: false,
setupFiles: ['jest-localstorage-mock'],
Expand Down

0 comments on commit 5593202

Please sign in to comment.