{"id":13403794,"url":"https://github.com/tomastrajan/angular-js-es6-testing-example","last_synced_at":"2025-05-02T22:31:06.852Z","repository":{"id":36511844,"uuid":"40817549","full_name":"tomastrajan/angular-js-es6-testing-example","owner":"tomastrajan","description":"Enhanced testing of Angular JS 1.X applications using ES6 modules","archived":false,"fork":false,"pushed_at":"2019-01-10T06:49:01.000Z","size":2027,"stargazers_count":170,"open_issues_count":4,"forks_count":41,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-04-15T09:07:24.469Z","etag":null,"topics":["angularjs","es2015","es6","mocha","testing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomastrajan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-16T12:59:25.000Z","updated_at":"2024-02-23T19:07:49.000Z","dependencies_parsed_at":"2022-09-06T18:21:10.680Z","dependency_job_id":null,"html_url":"https://github.com/tomastrajan/angular-js-es6-testing-example","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomastrajan%2Fangular-js-es6-testing-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomastrajan%2Fangular-js-es6-testing-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomastrajan%2Fangular-js-es6-testing-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomastrajan%2Fangular-js-es6-testing-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomastrajan","download_url":"https://codeload.github.com/tomastrajan/angular-js-es6-testing-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252116130,"owners_count":21697316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angularjs","es2015","es6","mocha","testing"],"created_at":"2024-07-30T19:01:34.697Z","updated_at":"2025-05-02T22:31:04.158Z","avatar_url":"https://github.com/tomastrajan.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Seed Projects"],"sub_categories":[],"readme":"# Angular JS 1.5 - ES6 Module Unit testing and Karma Integration testing seed by [@tomastrajan](https://twitter.com/tomastrajan) [![Build Status](https://travis-ci.org/tomastrajan/angular-js-es6-testing-example.svg?branch=master)](https://travis-ci.org/tomastrajan/angular-js-es6-testing-example)\n\nGreat seed for enterprise projects with heavy focus on unit and integration testing.\n\nThis repository contains two releases:\n\n1. `1.4.0` - for Angular JS 1.4 and lower (uses [Component Pattern for Angular JS](https://medium.com/@tomastrajan/component-paradigm-cf32e94ba78b))\n2. `1.5.0` - for Angular JS 1.5 and above which supports native `.component(name, options)` API\n\n## Info\n\n* original blog post describing [Proper testing of Angular JS 1.X applications with ES6 modules](https://medium.com/@tomastrajan/proper-testing-of-angular-js-applications-with-es6-modules-8cf31113873f)\n* [demo project](http://tomastrajan.github.io/angular-js-es6-testing-example/) with examples of mocha unit \u0026 karma integration tests\n* [presentation](http://slides.com/tomastrajan/angularjs-unit-testing-with-es6-modules) about the concepts used in this repository\n* [video](https://www.youtube.com/watch?v=JTkEsu-cEzc) from Angular JS Meetup Zurich\n\n\n![Components](/src/asset/image/testing.png?raw=true \"Proper testing of Angular JS 1.X applications with ES6 modules\")\n\n## Getting started\n\n1. Clone repository `git clone https://github.com/tomastrajan/angular-js-es6-testing-example.git`\n2. Enter project directory `cd angular-js-es6-testing-example`\n3. Install dependencies `npm i` or `npm install`\n\n## Scripts\n\nAll scripts are run with `npm run [script]`, for example: `npm run test`.\n\n* `start` - start development server, try it by opening `http://localhost:8081/webpack-dev-server/index.html`\n\n* `build` - create dev build, check `build` directory\n* `dist` - create production build, check `dist` directory\n\n* `server_build` - serve content from `build` directory\n* `server_dist` - serve content from `dist` directory\n\n* `lint` - lint code (with ESLint)\n* `mocha` - run all unit tests (with Mocha)\n* `watch` - run and watch all unit tests (with Mocha)\n* `karma` - run all integration tests (with Karma / Jasmine)\n* `test` - lint code and run all tests (with Mocha and Karma)\n\n* `ci` - for Travis CI\n\n# Tests\n\nFor more detailed info about tests check the original [blog post](https://medium.com/@tomastrajan/proper-testing-of-angular-js-applications-with-es6-modules-8cf31113873f).\n\n\n* `*.test.js` - mocha unit tests\n* `*.integration.test.js` - mocha integration tests (manual)\n* `*.spec.js` - karma integration tests (spin up Angular JS app context)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomastrajan%2Fangular-js-es6-testing-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomastrajan%2Fangular-js-es6-testing-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomastrajan%2Fangular-js-es6-testing-example/lists"}