implement unit tests with jest. configure it to match our specific needs. atm...
implement unit tests with jest. configure it to match our specific needs. atm no icons can be imported and have therefor been commented out in the component to be tested
.babelrc
0 → 100644
jest.config.js
0 → 100755
This diff is collapsed.
{ | ||
"name": "viewer", | ||
"version": "1.3.2", | ||
"name": "@subugoe/qviewer", | ||
"version": "1.4.1", | ||
"description": "Viewer for the modular framework to present digital editions", | ||
"productName": "EMo Viewer", | ||
"keywords": [ | ||
... | ... | @@ -33,26 +33,24 @@ |
"url": "https://gitlab.gwdg.de/subugoe/emo/Qviewer.git" | ||
}, | ||
"private": false, | ||
"publishConfig": { | ||
"@subugoe:registry": "https://gitlab.gwdg.de/api/v4/projects/10921/packages/npm/" | ||
}, | ||
"dependencies": { | ||
"@quasar/extras": "^1.9.5", | ||
"@quasar/extras": "^1.9.7", | ||
"openseadragon": "^2.4.2", | ||
"quasar": "^1.13.2", | ||
"quasar": "^1.14.0", | ||
"vuedraggable": "^2.24.1" | ||
}, | ||
"devDependencies": { | ||
"@quasar/app": "^2.0.8", | ||
"@quasar/app": "^2.1.0", | ||
"@quasar/quasar-app-extension-testing-unit-jest": "^2.0.0", | ||
"autoprefixer": "9.8.6", | ||
"babel-eslint": "^10.1.0", | ||
"eslint": "^7.8.1", | ||
"eslint": "^7.10.0", | ||
"eslint-config-airbnb-base": "^14.2.0", | ||
"eslint-loader": "^4.0.2", | ||
"eslint-plugin-import": "^2.22.0", | ||
"eslint-plugin-vue": "^6.2.2", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-vue": "^7.0.0", | ||
"node-sass": "^4.14.1", | ||
"sass": "^1.26.10", | ||
"sass": "^1.26.11", | ||
"sass-loader": "8.0.2", | ||
"stylelint": "^13.7.2", | ||
"stylelint-config-sass-guidelines": "^7.1.0" | ||
... | ... | @@ -67,10 +65,24 @@ |
"resolutions": { | ||
"@babel/parser": "7.7.5" | ||
}, | ||
"unit-jest": { | ||
"runnerCommand": "jest" | ||
}, | ||
"@quasar/testing-unit-jest": { | ||
"babel": "babelrc", | ||
"options": [ | ||
"scripts", | ||
"SFC" | ||
] | ||
}, | ||
"scripts": { | ||
"build": "quasar build --modern", | ||
"dev": "quasar dev --modern", | ||
"lint": "eslint --ext .js,.vue src", | ||
"lint:scss": "node_modules/.bin/stylelint 'src/**/*.{scss,vue}'" | ||
"lint:scss": "node_modules/.bin/stylelint 'src/**/*.{scss,vue}'", | ||
"test:unit": "jest --updateSnapshot" | ||
}, | ||
"publishConfig": { | ||
"@subugoe:registry": "https://gitlab.gwdg.de/api/v4/projects/10921/packages/npm/" | ||
} | ||
} |
tests/unit/utils/index.js
0 → 100755