Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jgermade committed Nov 22, 2018
1 parent b8eebc6 commit 09b7ec3
Show file tree
Hide file tree
Showing 9 changed files with 979 additions and 14 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ eslint:

build:
# $(shell npm bin)/rollup app.js --output.format cjs --output.file dist/app.cjs.js
$(shell npm bin)/rollup app.js --output.format umd --output.file dist/app.umd.js -n APP -c rollup.config.js
# $(shell npm bin)/rollup app.js --output.format umd --output.file dist/app.umd.js -n APP -c rollup.config.js
$(shell npm bin)/rollup tests/_karma-wrapper.js --output.format iife --output.file tests/_karma-app.js -c rollup.config.js

test: install eslint build
$(shell npm bin)/karma start karma.conf.js
Expand Down
6 changes: 3 additions & 3 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ module.exports = function(config) {
'karma-mocha-reporter',
],
files: [
'dist/app.umd.js',
'tests/_expose-render-nodes.js',
'tests/_karma-app.js',
'tests/{,**/}*-tests.js',
'node_modules/@triskel/con-text/tests/{,**/}*-tests.js',
'node_modules/@triskel/render/tests/{,**/}*-tests.js',
],
// browsers: [ 'Chrome', 'Firefox' ],
Expand All @@ -34,7 +34,7 @@ module.exports = function(config) {
// source files, that you wanna generate coverage for
// do not include tests or libraries
// (these files will be instrumented by Istanbul)
'dist/app.umd.js': ['coverage'],
'tests/_karma-app.js': ['coverage'],
},
coverageReporter: {
type: 'lcov', // lcov or lcovonly are required for generating lcov.info files
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"rollup-plugin-node-resolve": "^3.4.0"
},
"dependencies": {
"@triskel/con-text": "1.0.13",
"@triskel/con-text": "1.0.21",
"@triskel/render": "1.1.0"
}
}
5 changes: 0 additions & 5 deletions tests/_expose-render-nodes.js

This file was deleted.

Loading

0 comments on commit 09b7ec3

Please sign in to comment.