vue-toaster icon indicating copy to clipboard operation
vue-toaster copied to clipboard

Add test suite

Open jprodrigues70 opened this issue 4 years ago • 2 comments

Use Vue Test Utils with Jest

jprodrigues70 avatar Oct 22 '20 13:10 jprodrigues70

@jprodrigues70 I would like to write some tests for you here, however, I'm getting strange errors that I think are occurring because the 'vue' library isn't in your package.json.

Could you setup the repo such that tests can be added, or list out the packages I would need to install?

Just to give you an idea of an error:

image

RizaHKhan avatar Apr 15 '21 03:04 RizaHKhan

@RizaHKhan Can you please add the devDependecies with the changes that you will submit in your Pull Request?

I think that you will need to use:

  "devDependencies": {
     "core-js": "^3.6.5",
    "vue": "^3.0.0",
    "@vue/cli-plugin-babel": "~4.5.0",
    "@vue/cli-plugin-eslint": "~4.5.0",
    "@vue/cli-service": "~4.5.0",
    "@vue/compiler-sfc": "^3.0.0",
    "babel-eslint": "^10.1.0",
    "eslint": "^6.7.2",
    "eslint-config-prettier": "^6.13.0",
    "eslint-plugin-prettier": "^3.1.4",
    "eslint-plugin-vue": "^7.0.0-0",
    "prettier": "^2.1.2",
    "vue-loader": "^15.9.3"
  },

jprodrigues70 avatar Apr 16 '21 03:04 jprodrigues70