e0f3166343
WHAT: unit tests for vue components and vuex store and environment for it WHY: to cover frontend part with tests Change-Id: I2aeaadb200176d4ba0a1406068304785e95d92cd
91 lines
2.4 KiB
JSON
91 lines
2.4 KiB
JSON
{
|
|
"name": "multinode",
|
|
"version": "0.0.1",
|
|
"scripts": {
|
|
"serve": "vue-cli-service serve",
|
|
"lint": "vue-cli-service lint && stylelint '**/*.{vue,scss}' --fix",
|
|
"build": "vue-cli-service build",
|
|
"dev": "vue-cli-service build --mode development",
|
|
"test": "vue-cli-service test:unit"
|
|
},
|
|
"dependencies": {
|
|
"vue": "2.6.11",
|
|
"vue-class-component": "7.2.6",
|
|
"vue-clipboard2": "0.3.1",
|
|
"vue-jest": "3.0.5",
|
|
"vue-property-decorator": "9.1.2",
|
|
"vue-router": "3.4.9",
|
|
"vuex": "3.6.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "7.8.4",
|
|
"@babel/plugin-proposal-object-rest-spread": "7.8.3",
|
|
"@vue/cli-plugin-babel": "4.1.1",
|
|
"@vue/cli-plugin-typescript": "4.1.1",
|
|
"@vue/cli-plugin-unit-jest": "4.1.1",
|
|
"@vue/cli-service": "4.1.1",
|
|
"@vue/test-utils": "1.0.0-beta.30",
|
|
"babel-core": "7.0.0-bridge.0",
|
|
"compression-webpack-plugin": "6.0.0",
|
|
"core-js": "3.6.5",
|
|
"jest-fetch-mock": "3.0.0",
|
|
"node-sass": "4.14.1",
|
|
"sass-loader": "8.0.0",
|
|
"sinon": "7.5.0",
|
|
"stylelint": "13.7.1",
|
|
"stylelint-config-standard": "19.0.0",
|
|
"stylelint-scss": "3.18.0",
|
|
"stylelint-webpack-plugin": "1.2.1",
|
|
"ts-jest": "25.5.0",
|
|
"tslint": "5.20.1",
|
|
"tslint-consistent-codestyle": "1.16.0",
|
|
"tslint-loader": "3.5.4",
|
|
"typescript": "3.7.4",
|
|
"vue-svg-loader": "0.15.0",
|
|
"vue-template-compiler": "2.6.11",
|
|
"vue-tslint": "0.3.2",
|
|
"vue-tslint-loader": "3.5.6",
|
|
"webpack": "4.41.5"
|
|
},
|
|
"jest": {
|
|
"automock": false,
|
|
"setupFiles": [
|
|
"./jestSetup.ts"
|
|
],
|
|
"globals": {
|
|
"ts-jest": {
|
|
"diagnostics": false
|
|
}
|
|
},
|
|
"moduleFileExtensions": [
|
|
"js",
|
|
"jsx",
|
|
"json",
|
|
"vue",
|
|
"ts",
|
|
"tsx"
|
|
],
|
|
"collectCoverage": true,
|
|
"transform": {
|
|
"^.+\\.js$": "babel-jest",
|
|
"^.+\\.vue$": "vue-jest",
|
|
".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "jest-transform-stub",
|
|
"^.+\\.tsx?$": "ts-jest",
|
|
"^.+\\.svg$": "<rootDir>/tests/unit/mock/svgTransform.js"
|
|
},
|
|
"transformIgnorePatterns": [
|
|
"/node_modules/"
|
|
],
|
|
"moduleNameMapper": {
|
|
"^@/(.*)$": "<rootDir>/src/$1"
|
|
},
|
|
"snapshotSerializers": [
|
|
"jest-serializer-vue"
|
|
],
|
|
"testMatch": [
|
|
"<rootDir>/tests/unit/**/*.spec.(js|jsx|ts|tsx)|<rootDir>/__tests__/*.(js|jsx|ts|tsx)"
|
|
],
|
|
"testURL": "http://localhost/"
|
|
}
|
|
}
|