From 32a45fa7853020a67154324b335a29227c91ff6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1zaro=20Menezes?= Date: Fri, 26 Aug 2016 20:24:45 -0300 Subject: [PATCH] Using karma custom template properties to override HTMLs --- package.json | 2 +- test/karma.config.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7da08ce..afe2ea3 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "build": "gulp --gulpfile test/gulpfile.ts --cwd ./ build-app", "e2e": "gulp --gulpfile test/gulpfile.ts --cwd ./ build-e2e && protractor test/protractor.conf.js", "karma": "gulp --gulpfile test/gulpfile.ts --cwd ./ karma-debug", - "postinstall": "ionic state restore && typings install && webdriver-manager update && cp test/karma-static/*.html node_modules/karma/static", + "postinstall": "ionic state restore && typings install && webdriver-manager update", "start": "ionic serve", "test": "gulp --gulpfile test/gulpfile.ts --cwd ./ unit-test" }, diff --git a/test/karma.config.js b/test/karma.config.js index 67d083c..b689d5d 100644 --- a/test/karma.config.js +++ b/test/karma.config.js @@ -87,7 +87,12 @@ module.exports = function(config) { // https://github.com/lathonez/clicker/issues/82 // try increasing this value if you see the error "Disconnected (1 times), because no message in 30000 ms." - browserNoActivityTimeout: 30000 + browserNoActivityTimeout: 30000, + + customContextFile: "test/karma-static/context.html", + + customDebugFile: "test/karma-static/debug.html", + }); if (process.env.TRAVIS || process.env.CIRCLECI) {