Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test suite #5

Open
jprodrigues70 opened this issue Oct 22, 2020 · 2 comments
Open

Add test suite #5

jprodrigues70 opened this issue Oct 22, 2020 · 2 comments

Comments

@jprodrigues70
Copy link
Member

jprodrigues70 commented Oct 22, 2020

Use Vue Test Utils with Jest

@RizaHKhan
Copy link

@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
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants