We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc61af4 + 8781016 commit bfc1549Copy full SHA for bfc1549
lib/server.js
@@ -82,7 +82,15 @@ exports.Server = function Server(bsClient, workers) {
82
'mocha': ['mocha-plugin.js']
83
};
84
85
- if (mimeType === 'text/html') {
+ var filePath = path.relative(process.cwd(), filename);
86
+ var pathMatches;
87
+
88
+ if (typeof config.test_path === 'object') {
89
+ pathMatches = (config.test_path.indexOf(filePath) != -1);
90
+ } else {
91
+ pathMatches = (filePath == config.test_path);
92
+ }
93
+ if (pathMatches && mimeType === 'text/html') {
94
var matcher = /(.*)<\/head>/;
95
var patch = "$1";
96
scripts.forEach(function(script) {
0 commit comments