Fixes #1810: jest problem on windows (#1811)

* Fixes #1810: jest problem on windows

* switch from modulePaths to moduleNameMapper

* Avoid dependency on built dist
This commit is contained in:
Kevin Barabash
2019-02-21 02:15:34 -05:00
committed by ylemkimon
parent 515411d34f
commit 122c197f51

View File

@@ -79,7 +79,7 @@
"test:lint:js": "eslint *.js src static test contrib dockers website",
"test:lint:css": "stylelint src/katex.less static/main.css contrib/**/*.css website/static/**/*.css",
"test:flow": "flow",
"test:jest": "NODE_PATH=./:$NODE_PATH jest",
"test:jest": "jest",
"test:jest:watch": "jest --watch",
"test:jest:update": "jest --updateSnapshot",
"test:jest:coverage": "jest --coverage",
@@ -125,6 +125,9 @@
"testURL": "http://localhost/",
"transform": {
"^.+\\.js$": "babel-jest"
},
"moduleNameMapper": {
"^katex$": "<rootDir>/katex.js"
}
}
}