Skip to content

Commit

Permalink
readded karma for client side unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadayubi committed May 14, 2020
1 parent 4e90923 commit b8315a9
Show file tree
Hide file tree
Showing 9 changed files with 4,582 additions and 3,011 deletions.
5 changes: 5 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ module.exports = function (grunt) {
}
});



/*grunt.loadNpmTasks('grunt-html');*/
grunt.loadNpmTasks('grunt-contrib-uglify-es');
grunt.loadNpmTasks('grunt-contrib-jshint');
Expand All @@ -151,10 +153,13 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-jest');
/* grunt.loadNpmTasks('grunt-processhtml'); */


grunt.registerTask('test', ['jshint']);
grunt.registerTask('karmaa', ['karma'])


grunt.registerTask('default', ['clean:dist', 'copy', 'jshint', 'concat', 'uglify']);

Expand Down
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
preset: "jest-playwright-preset",
globals: { "PATH": "http://localhost:30001" },
testMatch: ["**/test/e2e/*.test.js"]
};
4 changes: 4 additions & 0 deletions jest.config.unit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
globals: { "PATH": "http://localhost:30001" },
testMatch: ["**/test/*.test.js"]
};
Loading

0 comments on commit b8315a9

Please sign in to comment.