CMy project directory structure is the following :
project
|_ config ( config .js files)
|_ coverage ( reporting result files )
|_ dist ( compiled project for distribution )
|_ docs ( temporary wip .js files NOT TO BE parsed ! )
|_ server
|_helpers ( js files )
|_models. ( js files )
|_v1
|_controllers ( js files)
|_routes (js files )
L_tests ( js files )
|_ all .files ( .env, .git, .yarn, ..etc
|_index.js
|_package.json
running a test :
"test:v1": "cross-env NODE_ENV=test ./node_modules/.bin/mocha
--timeout 15000 --ui bdd --reporter spec --colors
--compilers js:babel-core/register server/v1/tests/user.test.js
--recursive",
I get a parsing error on a .js files which is located in the doc directory as these files are not to e taken in account in the test, how can I avoid parsing of the docs directory ?
I am using Webstorm 2017 as an IDE...
thanks for feedback
via erwin
No comments:
Post a Comment