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:
Erik Demaine
2018-05-18 09:45:19 -04:00
committed by GitHub
parent 4a3d6a526f
commit 7b22eeb64a
7 changed files with 308 additions and 392 deletions

View File

@@ -87,6 +87,10 @@
"nomnom": "^1.8.1"
},
"jest": {
"collectCoverageFrom": [
"src/**/*.js",
"contrib/**/*.js"
],
"setupTestFrameworkScriptFile": "<rootDir>/test/setup.js",
"snapshotSerializers": [
"jest-serializer-html"