Skip to content

Commit

Permalink
tmp3 one test failing
Browse files Browse the repository at this point in the history
  • Loading branch information
R0Wi committed Dec 2, 2023
1 parent dc85c17 commit 3f686ee
Show file tree
Hide file tree
Showing 10 changed files with 12,061 additions and 20,333 deletions.
99 changes: 70 additions & 29 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,75 @@
// These modules will be transformed to commonjs modules
const ignorePatterns = [

// TODO :: make test working


"vue-material-design-icons",
"axios",
// "@nextcloud/axios"
'ansi-regex',
'@mdi/svg',
'bail',
'comma-separated-tokens',
'char-regex',
'decode-named-character-reference',
'devlop',
'escape-string-regexp',
'hast-.*',
'is-.*',
'mdast-.*',
'micromark',
'micromark-.*',
'property-information',
'rehype-.*',
'remark-.*',
'space-separated-tokens',
'string-length',
'strip-ansi',
'trim-lines',
'trough',
'tributejs',
'unified',
'unist-.*',
'vfile',
'vfile-.*',
'vue-material-design-icons',
'web-namespaces',
]

module.exports = {
preset: '@vue/cli-plugin-unit-jest',
collectCoverage: true,
collectCoverageFrom: [
"src/**/*.{js,vue}",
"!src/test/**",
"!**/node_modules/**"
],
coverageReporters: [
"text-summary",
"json",
"lcov",
"html"
],
testMatch: [
"**/src/test/*.spec.js",
"**/src/test/**/*.spec.js"
],
transformIgnorePatterns: [
'node_modules/(?!(' + ignorePatterns.join('|') + ')/)'
],
setupFilesAfterEnv: ['<rootDir>/src/test/setup-jest.js']
}
collectCoverage: true,

collectCoverageFrom: [
'src/**/*.{js,vue}',
'!src/test/**',
'!**/node_modules/**',
],

coverageReporters: [
'text-summary',
'json',
'lcov',
'html',
],

testMatch: [
'**/src/test/*.spec.js',
'**/src/test/**/*.spec.js'
],

transformIgnorePatterns: [
'node_modules/(?!(' + ignorePatterns.join('|') + ')/)',
],

setupFilesAfterEnv: ['<rootDir>/src/test/setup-jest.js'],

testEnvironment: 'jest-environment-jsdom',

moduleFileExtensions: [
'js',
'vue',
],

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

transform: {
'\\.js$': 'babel-jest',
'\\.vue$': '@vue/vue2-jest',
},
}
Loading

0 comments on commit 3f686ee

Please sign in to comment.