Browse Source

Update test config

pull/1542/head
Hironsan 3 years ago
parent
commit
be5118d729
3 changed files with 1087 additions and 672 deletions
  1. 6
      frontend/jest.config.js
  2. 4
      frontend/package.json
  3. 1749
      frontend/yarn.lock

6
frontend/jest.config.js

@ -2,12 +2,14 @@ module.exports = {
moduleNameMapper: { moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1', '^@/(.*)$': '<rootDir>/$1',
'^~/(.*)$': '<rootDir>/$1', '^~/(.*)$': '<rootDir>/$1',
'^vue$': 'vue/dist/vue.common.js'
'^vue$': 'vue/dist/vue.common.js',
"^.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "jest-transform-stub"
}, },
moduleFileExtensions: ['js', 'vue', 'json'], moduleFileExtensions: ['js', 'vue', 'json'],
transform: { transform: {
'^.+\\.js$': 'babel-jest', '^.+\\.js$': 'babel-jest',
'.*\\.(vue)$': 'vue-jest'
'.*\\.(vue)$': 'vue-jest',
'^.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub'
}, },
collectCoverage: true, collectCoverage: true,
collectCoverageFrom: [ collectCoverageFrom: [

4
frontend/package.json

@ -53,6 +53,7 @@
"devDependencies": { "devDependencies": {
"@babel/core": "^7.14.8", "@babel/core": "^7.14.8",
"@babel/eslint-parser": "^7.14.7", "@babel/eslint-parser": "^7.14.7",
"@babel/preset-env": "^7.15.8",
"@nuxt/types": "^2.15.7", "@nuxt/types": "^2.15.7",
"@nuxt/typescript-build": "^2.1.0", "@nuxt/typescript-build": "^2.1.0",
"@nuxtjs/eslint-config": "^6.0.1", "@nuxtjs/eslint-config": "^6.0.1",
@ -63,7 +64,7 @@
"@types/wavesurfer.js": "^5.1.0", "@types/wavesurfer.js": "^5.1.0",
"@vue/test-utils": "^1.2.2", "@vue/test-utils": "^1.2.2",
"axios-mock-adapter": "^1.19.0", "axios-mock-adapter": "^1.19.0",
"babel-core": "^6.26.3",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^27.0.6", "babel-jest": "^27.0.6",
"core-js": "^3.15.*", "core-js": "^3.15.*",
"eslint": "^7.31.0", "eslint": "^7.31.0",
@ -76,6 +77,7 @@
"eslint-plugin-promise": "5.1.0", "eslint-plugin-promise": "5.1.0",
"eslint-plugin-vue": "^7.14.0", "eslint-plugin-vue": "^7.14.0",
"jest": "^27.0.6", "jest": "^27.0.6",
"jest-transform-stub": "^2.0.0",
"nodemon": "^2.0.12", "nodemon": "^2.0.12",
"prettier": "^2.3.2", "prettier": "^2.3.2",
"raw-loader": "^4.0.2", "raw-loader": "^4.0.2",

1749
frontend/yarn.lock
File diff suppressed because it is too large
View File

Loading…
Cancel
Save