Add unit testing for browser language (#197)

* Add unit testing

* Update unit testing

* Update unit testing

* fix a big heap of formatting typo
This commit is contained in:
墨娘
2020-12-23 01:06:52 +08:00
committed by GitHub
parent 0d920fa9bc
commit d1bf984d0b
6 changed files with 3561 additions and 86 deletions

View File

@@ -19,7 +19,8 @@
"dev:tool": "vue-cli-service serve src/nginxconfig/mount.js",
"analyze": "npm run build:tool -- --analyze",
"deploy:spaces:comment": "do-vue comment nginxconfig",
"test": "npm run test:eslint && npm run test:sass-lint && npm run test:i18n-packs",
"test": "npm run test:eslint && npm run test:sass-lint && npm run test:i18n-packs && npm run test:jest",
"test:jest": "jest /test/.*.js?$",
"test:fix": "npm run test:eslint:fix && npm run test:sass-lint:fix",
"test:eslint": "eslint 'src/**/*.{js,vue}'",
"test:eslint:fix": "npm run test:eslint -- --fix",
@@ -27,6 +28,9 @@
"test:sass-lint:fix": "sass-lint-auto-fix 'src/**/*.scss'",
"test:i18n-packs": "node -r esm src/nginxconfig/i18n/verify.js"
},
"jest": {
"testRegex": "/test/.*.js?$"
},
"repository": {
"type": "git",
"url": "git+https://github.com/digitalocean/nginxconfig.io.git"
@@ -57,13 +61,19 @@
"vue-select": "^3.10.8"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-transform-runtime": "^7.11.5",
"@babel/preset-env": "^7.11.5",
"@babel/runtime": "^7.11.2",
"@vue/cli-service": "^4.5.9",
"babel-eslint": "^10.1.0",
"chalk": "^4.1.0",
"copyfiles": "^2.4.1",
"core-js": "^3.6.5",
"duplicate-package-checker-webpack-plugin": "^3.0.0",
"eslint": "^7.15.0",
"eslint-plugin-vue": "^7.3.0",
"jest": "^26.6.3",
"esm": "^3.2.25",
"node-fetch": "^2.6.1",
"sass": "^1.30.0",