• Stars
    star
    170
  • Rank 215,908 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Enhanced testing of Angular JS 1.X applications using ES6 modules

Angular JS 1.5 - ES6 Module Unit testing and Karma Integration testing seed by @tomastrajan Build Status

Great seed for enterprise projects with heavy focus on unit and integration testing.

This repository contains two releases:

  1. 1.4.0 - for Angular JS 1.4 and lower (uses Component Pattern for Angular JS)
  2. 1.5.0 - for Angular JS 1.5 and above which supports native .component(name, options) API

Info

Components

Getting started

  1. Clone repository git clone https://github.com/tomastrajan/angular-js-es6-testing-example.git
  2. Enter project directory cd angular-js-es6-testing-example
  3. Install dependencies npm i or npm install

Scripts

All scripts are run with npm run [script], for example: npm run test.

  • start - start development server, try it by opening http://localhost:8081/webpack-dev-server/index.html

  • build - create dev build, check build directory

  • dist - create production build, check dist directory

  • server_build - serve content from build directory

  • server_dist - serve content from dist directory

  • lint - lint code (with ESLint)

  • mocha - run all unit tests (with Mocha)

  • watch - run and watch all unit tests (with Mocha)

  • karma - run all integration tests (with Karma / Jasmine)

  • test - lint code and run all tests (with Mocha and Karma)

  • ci - for Travis CI

Tests

For more detailed info about tests check the original blog post.

  • *.test.js - mocha unit tests
  • *.integration.test.js - mocha integration tests (manual)
  • *.spec.js - karma integration tests (spin up Angular JS app context)

More Repositories

1

angular-ngrx-material-starter

Angular, NgRx, Angular CLI & Angular Material Starter Project
TypeScript
2,802
star
2

ngx-model

Angular Model. Simple state management with minimalistic API, one way data flow, multiple model support and immutable data exposed as RxJS Observable.
TypeScript
132
star
3

react-typescript-webpack

Seed for building React app using Typescript and Webpack build using FLUXless architecture
TypeScript
116
star
4

component-pattern-for-angular-js-1-x

Example of implementation of Component pattern for Angular JS 1.X using ES6 & Webpack
JavaScript
70
star
5

angular-architecture-example

TypeScript
68
star
6

medium-enhanced-stats

Google Chrome Extension for enhanced Medium stats! Get insight into total view count with new table summary row...
JavaScript
68
star
7

angular-library-architecture-example

Angular Library Architecture Example
TypeScript
40
star
8

angular-model-pattern-example

Model pattern for Angular (2, 4, ...), manage and share your state with simple services using RxJS Subjects and Observables
HTML
36
star
9

ngx-model-hacker-news-example

Example repository with Hacker News implementation using Angular, Angular Material & ngx-model
TypeScript
27
star
10

angular-mastery-workshop

TypeScript
18
star
11

releasebot

TypeScript
18
star
12

angular-lazy-lib-demo

How to lazy load modules from Angular libraries example
TypeScript
16
star
13

workshop-angular-schematics

TypeScript
13
star
14

grunt-ngsrc

Find and add your Angular.js source files into index.html automatically
JavaScript
11
star
15

angular-monorepo-enterprise-starter

Angular Monorepo Enterprise Starter
TypeScript
10
star
16

jasmine-async-sugar

Simple drop-in syntax sugar for Jasmine 2.X test framework to enhance testing of async (promise) functionality to be used with Angular 1.X
JavaScript
8
star
17

meetup-angular-material-themes-example

Angular Material Themes Code Example for Angular Meetup Zurich 21. 8. 2017
TypeScript
8
star
18

node-babel-es6-example

Use ES6 module syntax in node.js with minimalized Babel influence (because node.js already supports most ES6 features)
JavaScript
5
star
19

tomastrajan-com

TypeScript
4
star
20

ngrx-test

WIP
TypeScript
2
star
21

webpack-seed

Fully featured webpack build
JavaScript
2
star
22

angular-bootstrap-example

Minimalistic Angular 6 Bootstrap 4 integration example
TypeScript
2
star
23

ngconsultant

ng-consultant website
TypeScript
2
star
24

Quado

Android arkanoid (breakout) type game
Java
2
star
25

complete-angular2-seed

Feature complete seed for Angular 2.0 applications with Typescript, Webpack build and focus on code style, testing and production ready packaging
TypeScript
1
star
26

fintech-example

TypeScript
1
star
27

ngx-model-example

Simple example project of using ngx-model in Angular application
TypeScript
1
star
28

grunt-npm-install-all

Run npm install in all matching directories with package.json file (exclude package.json files in already installed node_modules directories)
JavaScript
1
star
29

ultimate-es6-migration-guide-modules

Ultimate ES6 / ES2015 migration guide - Modules - forward backward compatibility & caveats
JavaScript
1
star
30

avatarjs-hapijs-seed

Seed project for Avatar.js (running node.js in JVM) & hapi.js (node.js web app framework)
Batchfile
1
star
31

http-request-cancelation-example

TypeScript
1
star
32

Quado-server

Score sharing backend
JavaScript
1
star
33

angular2-typescript-webpack

Angular 2 Typescript Webpack starter project
TypeScript
1
star
34

angular-signals-effect

Created with StackBlitz ⚑️
TypeScript
1
star
35

angular-elements-cd-example

TypeScript
1
star