Skip to content

Commit

Permalink
Update code to be NC28 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
R0Wi committed Dec 17, 2023
1 parent 7f081fe commit 27de819
Show file tree
Hide file tree
Showing 12 changed files with 12,257 additions and 33,153 deletions.
98 changes: 74 additions & 24 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,75 @@
// These modules will be transformed to commonjs modules
const ignorePatterns = [
'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\/(?!(vue-material-design-icons)\/)",
//"node_modules/(?!@babel)"
],
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 27de819

Please sign in to comment.