Giter Site home page Giter Site logo

codingstones / codelytv-vue-basic Goto Github PK

View Code? Open in Web Editor NEW
16.0 5.0 13.0 4.07 MB

Demo project for the CodelyTV Pro video course 'Building an app with VueJS and Jest using TDD'

Home Page: https://pro.codely.tv/library/crea-una-app-con-vuejs-y-jest-aplicando-tdd/65211/path/

JavaScript 78.14% Vue 17.60% HTML 0.62% CSS 3.63%
codelytv vuejs jest quasar testing tdd

codelytv-vue-basic's Introduction

JotasJS Basic

Demo project for the CodelyTV Pro video course Building an app with VueJS and Jest using TDD you may find in: Crea una app con VueJS y Jest aplicando TDD

Note that although all the videos and course contents are in Spanish, this repo is only available in English.

๐ŸฆŽ๐ŸฆŽ๐ŸฆŽ๐ŸฆŽ๐ŸฆŽ๐ŸฆŽ๐ŸฆŽ๐ŸฆŽ๐ŸฆŽ๐ŸฆŽ DISCLAIMER (Jan 2021) ๐ŸฆŽ๐ŸฆŽ๐ŸฆŽ๐ŸฆŽ๐ŸฆŽ

This project is very old and tests were a bit outdated ๐Ÿ˜“

We just migrated every test to Vue Testing Library and set testing-library as the default branch ๐Ÿ”ฅ

(You can always jump to jotas branch if you want to check the old fashioned tests).

Getting Started!

# install dependencies
$ yarn install
or
$ npm install

# run tests
$ yarn unit
or
$ npm run unit

# run tests in watch mode
$ yarn unit:watch
or
$ npm run unit:watch

# run tests in with coverage
$ yarn unit:coverage
or
$ npm run unit:coverage

# serve with hot reload at localhost:8080
$ yarn dev mat
or 
$ npm run dev mat


# 'mat' was the material theme, try iOS with
$ yarn dev ios
or
$ npm run dev ios

# build for production with minification
$ quasar build

Going Mobile!

You may want to wrap the App into a native mobile App. Given you already have Cordova and an Android or iOS SDK installed in your system, run:

quasar wrap cordova
cordova platform add android
cordova run android

For full details, take a look to the Quasar guide.

codelytv-vue-basic's People

Contributors

agualis avatar pardiez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

codelytv-vue-basic's Issues

Tests failing after git clone

โŒ After cloning the repository, New Gig title length validation is failing randomly when running all tests.
โœ”๏ธ These test pass when they run in isolation.

Failing tests:
New Gig Form โ€บ shows validation error โ€บ when validating title โ€บ and title is too short
New Gig Form โ€บ shows validation error โ€บ when validating title โ€บ and title is too long

git clone https://github.com/codingstones/codelytv-vue-basic
cd codelytv-vue-basic
yarn install
yarn unit
 FAIL  src/app/pages/NewGig/__test__/codely/TestingWithPageObjects.spec.js
  โ— New Gig Form โ€บ shows validation error โ€บ when validating title โ€บ and title is too short

    expect(string).toContain(value)
    
    Expected string:
      "Add a New Gig to Jota JS!  Insert Gig Title              Date and time      arrow_drop_down       
          Create Gig"
    To contain value:
      "Minimum 5 characters."
      
      at _callee3$ (src/app/pages/NewGig/__test__/codely/TestingWithPageObjects.spec.js:39:37)
      at tryCatch (node_modules/regenerator-runtime/runtime.js:65:40)
      at Generator.invoke [as _invoke] (node_modules/regenerator-runtime/runtime.js:299:22)
      at Generator.prototype.(anonymous function) [as next] (node_modules/regenerator-runtime/runtime.js:117:21)
      at step (node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
      at node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13
          at <anonymous>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.