Skip to content

Commit

Permalink
Merge pull request #39 from adambullmer/karma-upgrades
Browse files Browse the repository at this point in the history
Updated karma and karma-jasmine
  • Loading branch information
adambullmer authored Jul 16, 2017
2 parents dff9f55 + ae6b81e commit 9aabbc0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 25 deletions.
14 changes: 2 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ defaults: &defaults

version: 2
jobs:
build:

test:
<<: *defaults
steps:
- checkout
Expand All @@ -25,13 +26,6 @@ jobs:
root: .
paths:
- node_modules

test:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: /angular-bro-app
- run:
name: unit-tests
command: npm run test -- --reporter mocha-junit-reporter --reporter-options mochaFile=$(pwd)/junit/test-results.xml
Expand Down Expand Up @@ -62,13 +56,9 @@ workflows:
version: 2
build_and_test:
jobs:
- build
- test:
requires:
- build
- deploy:
requires:
- build
- test
filters:
branches:
Expand Down
3 changes: 2 additions & 1 deletion .circleci/images/primary/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ RUN apk update && \
nodejs \
nodejs-npm \
&& \
rm -rf /var/cache/apk/*
rm -rf /var/cache/apk/* && \
npm install -g npm@^4
3 changes: 0 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
}
},
"env": {
"browser": true,
"jasmine": true,
"jquery": true,
"node": true
},
"globals": {
Expand Down
6 changes: 3 additions & 3 deletions lib/angular-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Funnel = require('broccoli-funnel'),
amdNameResolver = require('amd-name-resolver').moduleResolve,
amdLoader = require('broccoli-amd-loader'),
Babel = require('broccoli-babel-transpiler'),
unitTest = require('broccoli-karma-plugin'),
unitTest = require('broccoli-plugin-karma'),
writeFile = require('broccoli-file-creator'),
wrap = require('broccoli-wrap'),
chalk = require('chalk'),
Expand Down Expand Up @@ -377,7 +377,7 @@ AngularApp.prototype.runTests = function (appScriptsTree, addonsScriptsTree, ven
});
}

unitTestingResults = unitTest(mergeTrees([vendorScriptsTree, addonsScriptsTree, appScriptsTree, tests, lintingResults], {
unitTestingResults = new unitTest(mergeTrees([vendorScriptsTree, addonsScriptsTree, appScriptsTree, tests, lintingResults], {
annotation: 'Merge Trees: Vendor Scripts, Addon Scripts, App Scripts, tests, linting'
}), karmaConfig);

Expand All @@ -403,7 +403,7 @@ AngularApp.prototype.toTree = function () {

lintingResults = this.runLinter(appScripts, appStyles);

appScripts = this.babel(mergeTrees([appScripts, templates]));
appScripts = this.babel(mergeTrees([appScripts, templates]));
addonsScripts = this.babel(addonsScripts);
appScripts = ngAnnotate(appScripts , { add: true, annotation: 'Ng Annotate: App Scripts' });
addonsScripts = ngAnnotate(addonsScripts , { add: true, annotation: 'Ng Annotate: Addons Scripts' });
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "angular-bro-app",
"version": "0.11.3",
"version": "0.12.0",
"description": "Angular broccoli plugin and compilation routine",
"main": "lib/angular-app.js",
"scripts": {
"test": "nyc mocha 'test/**/*.test.js'",
"posttest": "npm run coverage",
"lint": "eslint .",
"lint": "eslint lib",
"coverage": "nyc report --reporter=html",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
},
Expand Down Expand Up @@ -43,21 +43,22 @@
"broccoli-htmlmin": "^2.1.0",
"broccoli-imagemin": "^0.2.1",
"broccoli-inject-livereload": "^0.2.0",
"broccoli-karma-plugin": "^0.1.1",
"broccoli-less-single": "^0.6.0",
"broccoli-lint-eslint": "^3.2.1",
"broccoli-livereload-middleware": "0.1.1",
"broccoli-merge-trees": "^1.1.1",
"broccoli-ng-annotate": "^2.0.0",
"broccoli-plugin-karma": "^1.0.0",
"broccoli-uglify-js": "^0.1.3",
"broccoli-wrap": "0.0.2",
"chalk": "^1.1.3",
"express": "^4.13.4",
"jasmine-core": "^2.4.1",
"js-string-escape": "^1.0.1",
"karma": "^0.13.22",
"karma-coverage": "^0.5.5",
"karma-jasmine": "^0.3.8",
"karma": "^1.7.0",
"karma-babel-preprocessor": "^6.0.1",
"karma-coverage": "^1.1.1",
"karma-jasmine": "^1.1.0",
"karma-jasmine-html-reporter": "^0.2.0",
"karma-phantomjs-launcher": "^1.0.0",
"lodash": "^4.6.1"
Expand Down

0 comments on commit 9aabbc0

Please sign in to comment.