MeForma / vue-toaster

Vue.js toast notification plugin for vue 3
MIT License
194 stars 39 forks source link

Add test suite #5

Open jprodrigues70 opened 4 years ago

jprodrigues70 commented 4 years ago

Use Vue Test Utils with Jest

RizaHKhan commented 3 years ago

@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

jprodrigues70 commented 3 years ago

@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"
  },