Home
Softono
nuxtjs-vue-vuetify-vue-test-utils-jest-sample-project

nuxtjs-vue-vuetify-vue-test-utils-jest-sample-project

Open source JavaScript
23
Stars
14
Forks
3
Issues
3
Watchers
4 years
Last Commit

About nuxtjs-vue-vuetify-vue-test-utils-jest-sample-project

Sample Project with Setup of Jest, Vuetify, Nuxtjs, test utils, etc with working example tests

Platforms

Web Self-hosted

Languages

JavaScript

Setup for Nuxtjs Vue Vuetify Jest

This is sample project having setup of Jest, Vuetify, NuxtJS/Nuxt Typescript, Vue

It can test server side rendering as well

\$ make sure to add .nuxt-build-jest in your .gitignore file

Full Tutorial:

https://dev.to/bawa_geek/how-to-setup-jest-testing-in-nuxt-js-project-5c84

Build Setup

# install dependencies
$ npm install

# Running The Tests
$ npm run test

# Folders and Files to Look For
* package.json
* jest.config.js
* jest.setup.js
* tests/*

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm run start

# generate static project
$ npm run generate

For detailed explanation on how things work, check out Nuxt.js docs.