Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 28 additions & 12 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,41 @@

// TODO: find a way to consolidate this in one place, with webpack.common.js
const ignorePatterns = [
'vue-material-design-icons',
'@juliushaertl',
'@nextcloud/vue-richtext',
'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
Loading