I have recently started using ES6 coding style for AngularJs1.x. Codebase contains both ES6 style coding as well as ES5 style coding. Would like to use ES6 style coding for test specs also. Need help in understanding what config changes needs to done in Karma,protractor Grunt/Gulp files to support ES6 style coding as well as continue supporting existing old style spec code.
AngularJs testing for mix of ES6 and ES5 codebase
159 Views Asked by abhinav singh At
1
There are 1 best solutions below
Related Questions in ANGULARJS
- Angular Show All When No Filter Is Supplied
- Using pagination on a table in AngularJS
- State with different subviews
- Getting and passing MVC Model data to AngularJS controller
- Implementing prerender.io middleware in sails.js
- Token based authorization in nodejs/ExpressJs and Angular(Single Page Application)
- AngularJS, Google App Engine and URLrewrite
- send data from table to another page into forms
- How to write tests for classes with inheritance
- angularJS sending OPTIONS instead of POST
- Receiving POST from external application in AngularJS
- Metaprogramming AngularJS Filters
- Reload List after Closing Modal
- Why is my angularjs site not completely crawlable?
- Why is separation of JavaScript and HTML a good practice?
Related Questions in ECMASCRIPT-6
- React, ES6 - getInitialState was defined on a plain JavaScript class
- jspm does not transpile code from ES6 to ES5
- XHR progress event microtask queue
- Compiling ES6 arrow functions to Es5 using Babel.js
- How to properly bind current object context in ES6 using babelify
- Mixins for ES6 classes, transpiled with babel
- How do I support jasmine and es6 syntax in Visual studio Code?
- can es6 class have public properties as well as functions?
- is there any way to obtain a reference to (and use) an es6/2015 import in the same expression?
- ES6 classes with Angular 1 DI issue with $inject
- Recursive Tree Walk with ES6 Promise
- Do I have to call super.componentDidUpdate in React?
- How to check if a variable is an ES6 class declaration?
- The this-variable is the Window object or undefined in the then-method of a promise
- Webstorm: Debugging Mocha tests written in ES6
Related Questions in KARMA-RUNNER
- Working with karma and BrowserStack
- how to mock $state.params in jasmine unit testing
- Testing javascript using d3 with Karma
- Karma Coverage and Babel+Browserify Preprocessing
- test service call with success () , error () in jasmine
- Accessing scope.variables inside a function in jasmine
- Testing methods returning promise using jasmine
- Testing an AngularJS directive with isolated scope
- Can't redefine service defined as constant
- Speed up tests run in Chrome
- Organizing unit tests in angular app
- lodash npm distribution in browser
- how to test service property call
- Karma tests reporting fast runs, but actually running slow
- Writing the most basic Unit test in Angular 2?
Related Questions in BROWSERIFY
- Simple browserify test only runs when built with --debug
- does it make sense to browserify polymer elements` js?
- Use select2 version 4.0 with NPM and browserify
- Browserify: runtime in browser 'Cannot find module...' error
- Dependency updates do not appear after browserify
- Browserify dynamic separate bundles
- Testing javascript using d3 with Karma
- Watchify with gulp is not working
- Browserify with AngularJs router
- Difference between bower, browserify, requirejs, webpack?
- Multiple React components in a single module
- Is it okay to use babel-node in production
- Why I am getting "return props.href || props.onClick;" after moving to browserify?
- How to create standalone bundle of React & React with Addons using Grunt + Browserify?
- How to use Stanza.io without browserify?
Related Questions in BABELIFY
- Browserify + WebStorm debug breaks routing in React-Router v4 BrowserRouter
- Chrome breakpoints does not work with browserify and babelify
- Yarn Workspaces and Browserify - package.json in subfolder breaks the build
- trying to load vue-agile but ParseError
- Browserify + Gulp + Babelify ~ import' and 'export' may appear only with 'sourceType: module
- Babelify imports in a reactJS application does not replace let declarations to var
- Vue "ParseError: 'import' and 'export' may appear only with 'sourceType: module'"
- AngularJs testing for mix of ES6 and ES5 codebase
- error using browserify with babelify "'import' and 'export' may apper only with 'sourceType: module'"
- Watchify compile once wrongly and then stops
- How do I disable babel minification when not in production?
- Cannot call functions after running browserify
- How to run browserify without ecmascript-6 transpilation?
- Grunt build failing - ParseError: 'import' and 'export' may appear only with 'sourceType: module'
- Create an embeddable widget using React
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
After some research and try out , below config worked for me.. Used browserify with bebelify transform.