GithubHelp home page GithubHelp logo

fayway / jscomponentsunittesting Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 3.01 MB

Demo App for the talk http://fayway.github.io/ComponentsTesting/ using ES6, Webpack, Ractive.js, Mocha, Sinon.JS...

JavaScript 44.21% HTML 15.06% CSS 40.72%

jscomponentsunittesting's Introduction

Introduction

Demo App for the talk http://fayway.github.io/ComponentsTesting/

Keywords

Installation Prerequisites

  • Install Node 4
  • Clone this repo
  • Install dependencies
cd project-folder
npm install

Internal server (with LiveReload)

npm run dev

Navigate to http://localhost:8080/

Tests

Running CLI test

npm test

It will execute tests listed in directory tests/slides/

Browser tests

Launch

npm run devtest

And navigate to http://localhost:8080/test

Webpack Recap

Installing Webpack

npm install webpack -g

Run Webpack with watch mode enabled

webpack --watch

Webpack Dev Server

Webpack has a web server called webpack-dev-server. From the command line, install webpack-dev-server globally:

npm install webpack-dev-server -g

From the command line, run the following command:

webpack-dev-server

To enable hot-loading and remove the App Ready status bar at the top, terminate the webpack-dev-server and rerun webpack-dev-server with the inline flag:

webpack-dev-server --inline

jscomponentsunittesting's People

Contributors

fayway 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.