GithubHelp home page GithubHelp logo

farahriz / vue-hackernews Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eddyerburgh/vue-hackernews

0.0 1.0 0.0 621 KB

A Vue hacker news application with tests

JavaScript 75.11% Vue 24.62% HTML 0.27%

vue-hackernews's Introduction

Vue HackerNews

A Hacker News clone with tests, written for the book Testing Vue.js Applications

Experimentation notes

Branches in the format chapter-<number> are cloned from the original repo. Branches in the format chapter-<number>-do are where I tried to follow along with the instructions in the book to write tests.

Any issues encountered or notable points I learn while playing around with this will be added into this README as a reference.

Chapter 2

If you are also following along with the book, you will find chapter 2 to be full of frustrating errors. Please check out the errata to pin your package versions.

Even despite pinning package versions, an import error may occur in chapter 2 as babel fails to transpile. Try adding the following to your package.json to resolve the issue. It worked for me.

"jest": { "transform": { "^.+\\.vue$": "vue-jest", "^.+\\.(js|jsx)?$": "<rootDir>/node_modules/babel-jest" } }

If it is still too frustrating, you'll have to skip doing Chapter 2. Just read through, internalise the messages, then $git checkout chapter-3 and $npm install and you should be able to follow along with Chapter 3 just fine.

Default notes from original repo

Test

Run full suite:

npm run test

Unit tests:

npm run test:unit

Integration tests:

npm run test:integration

E2E tests:

npm run test:e2e

Development

Run the development server:

npm run serve

vue-hackernews's People

Contributors

eddyerburgh avatar farahriz avatar

Watchers

James Cloos avatar

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.