Skip to content

A WallabyJS postprocessor that ensures Angular 1.x source files are loaded in the correct order so that `[$injector:nomod]` errors are avoided

License

Notifications You must be signed in to change notification settings

wallabyjs/wallaby-angular-filesort

 
 

Repository files navigation

Wallaby Angular Filesort Postprocessor

Build Status Coverage Status npm version Codacy Badge

#Installation

npm install wallaby-angular-filesort --save-dev

Usage

Wallaby.js configuration

var wallabyAngularFilesort = require('wallaby-angular-filesort');
var wallabyPostprocessor = wallabyAngularFilesort.create({
  whitelist: ['src/**/*.js']
});

module.exports = function (wallaby) {
  return {
    files: [
      // load Angular source files normally (instrumented = true and loaded = true)
    ],
    tests: [
      'test/**/*Spec.js'
    ],

    postprocessor: wallabyPostprocessor
  };
};

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Building

npm install
npm run build

Running Tests

Tests can be run with npm or with WallabyJS if that is available to you.

Run once via npm:

npm test

Run continuously while watching for changes via npm:

npm run test:watch

About

A WallabyJS postprocessor that ensures Angular 1.x source files are loaded in the correct order so that `[$injector:nomod]` errors are avoided

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%