Skip to content

Commit 916ea9e

Browse files
committed
Attempt to parse JSON only, otherwise npm start silently hangs forever on pollutants such as .DS_Store
1 parent 2750392 commit 916ea9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devtools/test_dashboard/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function readFiles(files) {
7272
}
7373

7474
function createMocksList(files) {
75-
var mocksList = files.map(function(file) {
75+
var mocksList = files.filter(function(file) {return file.extname === ".json"}).map(function(file) {
7676
var contents = JSON.parse(file.contents);
7777

7878
// get plot type keywords from mocks

0 commit comments

Comments
 (0)