mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 11:18:39 +00:00
Move test helpers into common modules (#1318)
* Move test helpers into common modules * helpers.js gets all the helper functions * setup.js gets the common Jest setup (serializer, expect extensions) * Exclude test from coverage testing * @ylemkimon's comments: parsing -> building, settings || defaultSettings * Default argument for settings * Fix lint errors * @ylemklemon's comment: use buildAndSetResult * Use template literals
This commit is contained in:
@@ -87,6 +87,10 @@
|
||||
"nomnom": "^1.8.1"
|
||||
},
|
||||
"jest": {
|
||||
"collectCoverageFrom": [
|
||||
"src/**/*.js",
|
||||
"contrib/**/*.js"
|
||||
],
|
||||
"setupTestFrameworkScriptFile": "<rootDir>/test/setup.js",
|
||||
"snapshotSerializers": [
|
||||
"jest-serializer-html"
|
||||
|
Reference in New Issue
Block a user