From 56f3bad3ab2f5df7c2cd664d644f1e050f054e40 Mon Sep 17 00:00:00 2001 From: lmlife2016 <287388482@qq.com> Date: Thu, 30 Apr 2020 17:12:53 +0800 Subject: [PATCH] refactor: add 'md' to FILE_TYPES when I use Chai Plugin for Snapshot Testing with Karma, run script 'karma start', there will show some warning like this in terminal: '[middleware:karma]: Invalid file type (md), defaulting to js.' this change could clear the warning --- lib/middleware/karma.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/middleware/karma.js b/lib/middleware/karma.js index dd1ee1d00..97aad5384 100644 --- a/lib/middleware/karma.js +++ b/lib/middleware/karma.js @@ -31,7 +31,8 @@ const FILE_TYPES = [ 'js', 'dart', 'module', - 'dom' + 'dom', + 'md' ] function filePathToUrlPath (filePath, basePath, urlRoot, proxyPath) {