refactor common test helpers into test/

This way we can share them with multiple tests
This commit is contained in:
David Lechner
2020-06-10 21:59:34 -05:00
committed by David Lechner
parent 8ba4143fa7
commit 31c3e2b52e
16 changed files with 205 additions and 223 deletions
+3 -2
View File
@@ -44,8 +44,9 @@
"prepare": "mkdir -p public/static/js && cp node_modules/@pybricks/mpy-cross-v5/build/mpy-cross.wasm public/static/js/",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=./test-env.js",
"coverage": "react-scripts test --env=./test-env.js --coverage --watchAll=false",
"test": "react-scripts test --env=./test/env.js",
"coverage": "react-scripts test --env=./test/env.js --coverage --watchAll=false",
"coverage:html": "yarn coverage --coverageReporters html",
"eject": "react-scripts eject",
"lint": "tsc --noEmit && eslint '*/**/*.{js,ts,tsx}' --quiet --fix"
},