mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge branch 'master' into Error-handling-in-GddTransactionList
This commit is contained in:
commit
d4a7ee63e0
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -380,7 +380,7 @@ jobs:
|
|||||||
##########################################################################
|
##########################################################################
|
||||||
- name: frontend | Unit tests
|
- name: frontend | Unit tests
|
||||||
run: |
|
run: |
|
||||||
docker run -v ~/coverage:/app/coverage --rm gradido/frontend:test yarn run test
|
docker run --env NODE_ENV=test -v ~/coverage:/app/coverage --rm gradido/frontend:test yarn run test
|
||||||
cp -r ~/coverage ./coverage
|
cp -r ~/coverage ./coverage
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# COVERAGE REPORT FRONTEND ###############################################
|
# COVERAGE REPORT FRONTEND ###############################################
|
||||||
|
|||||||
@ -1,12 +1,22 @@
|
|||||||
module.exports = {
|
module.exports = function (api) {
|
||||||
presets: ['@babel/preset-env'],
|
api.cache(true)
|
||||||
plugins: [
|
|
||||||
'transform-require-context',
|
const presets = ['@babel/preset-env']
|
||||||
|
const plugins = [
|
||||||
[
|
[
|
||||||
'component',
|
'component',
|
||||||
{
|
{
|
||||||
styleLibraryName: 'theme-chalk',
|
styleLibraryName: 'theme-chalk',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
]
|
||||||
|
|
||||||
|
if (process.env.NODE_ENV === 'test') {
|
||||||
|
plugins.push('transform-require-context')
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
presets,
|
||||||
|
plugins,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,8 +23,6 @@
|
|||||||
"axios": "^0.21.1",
|
"axios": "^0.21.1",
|
||||||
"babel-core": "^7.0.0-bridge.0",
|
"babel-core": "^7.0.0-bridge.0",
|
||||||
"babel-jest": "^27.3.1",
|
"babel-jest": "^27.3.1",
|
||||||
"babel-plugin-require-context-hook": "^1.0.0",
|
|
||||||
"babel-plugin-transform-require-context": "^0.1.1",
|
|
||||||
"babel-preset-vue": "^2.0.2",
|
"babel-preset-vue": "^2.0.2",
|
||||||
"bootstrap": "4.3.1",
|
"bootstrap": "4.3.1",
|
||||||
"bootstrap-vue": "^2.5.0",
|
"bootstrap-vue": "^2.5.0",
|
||||||
@ -90,6 +88,7 @@
|
|||||||
"@vue/eslint-config-prettier": "^4.0.1",
|
"@vue/eslint-config-prettier": "^4.0.1",
|
||||||
"babel-eslint": "^10.1.0",
|
"babel-eslint": "^10.1.0",
|
||||||
"babel-plugin-component": "^1.1.0",
|
"babel-plugin-component": "^1.1.0",
|
||||||
|
"babel-plugin-transform-require-context": "^0.1.1",
|
||||||
"dotenv-webpack": "^7.0.3",
|
"dotenv-webpack": "^7.0.3",
|
||||||
"node-sass": "^6.0.1",
|
"node-sass": "^6.0.1",
|
||||||
"sass-loader": "^10",
|
"sass-loader": "^10",
|
||||||
|
|||||||
@ -3325,11 +3325,6 @@ babel-plugin-polyfill-regenerator@^0.1.2:
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@babel/helper-define-polyfill-provider" "^0.1.2"
|
"@babel/helper-define-polyfill-provider" "^0.1.2"
|
||||||
|
|
||||||
babel-plugin-require-context-hook@^1.0.0:
|
|
||||||
version "1.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/babel-plugin-require-context-hook/-/babel-plugin-require-context-hook-1.0.0.tgz#3f0e7cce87c338f53639b948632fd4e73834632d"
|
|
||||||
integrity sha512-EMZD1563QUqLhzrqcThk759RhuNVX/ZJdrtGK6drwzgvnR+ARjWyXIHPbu+tUNaMGtPz/gQeAM2M6VUw2UiUeA==
|
|
||||||
|
|
||||||
babel-plugin-syntax-jsx@^6.18.0:
|
babel-plugin-syntax-jsx@^6.18.0:
|
||||||
version "6.18.0"
|
version "6.18.0"
|
||||||
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946"
|
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user