mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
* after authentification, query the categories if active and store them * get categories from store * use category store to get categories * get categories from store * mock store to have access to categories * to get rid of the active categories config variable in the frontend, the Category query returns an empty array when categories are not active * remove CATEGORIES_ACTIVE from .env * should return string to avoid warnings in console * replace all env calls for categories active by getter from store * use categoriesActive getter * ignore order of returned categories * mixin to get the category infos from the store, to ensure, that the quey has been called * fix misspelling --------- Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
43 lines
1.2 KiB
JavaScript
43 lines
1.2 KiB
JavaScript
module.exports = {
|
|
verbose: true,
|
|
collectCoverage: true,
|
|
collectCoverageFrom: [
|
|
'**/*.{js,vue}',
|
|
'!**/?(*.)+(spec|test|story).js?(x)',
|
|
'!**/node_modules/**',
|
|
'!**/.nuxt/**',
|
|
'!**/storybook/**',
|
|
'!**/coverage/**',
|
|
'!**/config/**',
|
|
'!**/maintenance/**',
|
|
'!**/plugins/**',
|
|
'!**/.eslintrc.js',
|
|
'!**/.prettierrc.js',
|
|
'!**/nuxt.config.js',
|
|
],
|
|
coverageThreshold: {
|
|
global: {
|
|
lines: 82,
|
|
},
|
|
},
|
|
coverageProvider: 'v8',
|
|
setupFiles: ['<rootDir>/test/registerContext.js', '<rootDir>/test/testSetup.js'],
|
|
transform: {
|
|
'.*\\.(vue)$': '@vue/vue2-jest',
|
|
'^.+\\.js$': 'babel-jest',
|
|
},
|
|
testMatch: ['**/?(*.)+(spec|test).js?(x)'],
|
|
modulePathIgnorePatterns: ['<rootDir>/dist/'],
|
|
moduleNameMapper: {
|
|
'\\.(svg)$': '<rootDir>/test/fileMock.js',
|
|
'\\.(scss|css|less)$': 'identity-obj-proxy',
|
|
'@mapbox/mapbox-gl-geocoder': 'identity-obj-proxy',
|
|
'vue2-datepicker/locale/undefined': 'vue2-datepicker/locale/en',
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
'^~/(.*)$': '<rootDir>/$1',
|
|
},
|
|
moduleFileExtensions: ['js', 'json', 'vue'],
|
|
testEnvironment: 'jest-environment-jsdom',
|
|
snapshotSerializers: ['jest-serializer-vue'],
|
|
}
|