You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.
Then remove "jest" property object from package.json.
Then make changes to the following lines in package-scripts.js :
jest: {default: series(rimraf('test/coverage-jest'),crossEnv('BABEL_TARGET=node jest')),accept: crossEnv('BABEL_TARGET=node jest -u'),watch: crossEnv('BABEL_TARGET=node jest --watch'),},
so they should take --config=test/jest.conf.js as an extra argument:
jest: {default: series(rimraf('test/coverage-jest'),crossEnv('BABEL_TARGET=node jest --config=test/jest.conf.js')),accept: crossEnv('BABEL_TARGET=node jest --config=test/jest.conf.js -u'),watch: crossEnv('BABEL_TARGET=node jest --config=test/jest.conf.js --watch'),},
What is the motivation / use case for changing the behavior?
Having separate jest.conf.js will make it more consistent with karma.conf.js and protractor.conf.js way of setup.
Also, package.json will be less cluttered.
Shouldn't mix concerns inside package.json.
The text was updated successfully, but these errors were encountered:
This skeleton is deprecated.
The latest one is in https://github.com/aurelia/v1
But the jest config is still in package.json, it's quite easy to extract the part out to jest.config.js/ts. But I am not sure how the community will respond. I am fine with both ways, but some users prefer one way over the other.
I'm submitting a feature request
Aurelia Skeleton Version
skeleton-esnext-webpack
skeleton-typescript-webpack
Framework Version:
1.1.5
Please tell us about your environment:
Operating System:
Windows 10
Node Version:
8.6.0
NPM Version:
5.4.2
JSPM OR Webpack AND Version
webpack 3.6.0
Browser:
all
Language:
TypeScript and ESNext
Current behavior:
Configurations of jest is currently inside
package.json
in these skeletonsskeleton-esnext-webpack
andskeleton-typescript-webpack
.Desired behavior:
Configurations of jest should be in a separate file
jest.conf.js
. To acheive this, first we create this file:Then remove
"jest"
property object frompackage.json
.Then make changes to the following lines in
package-scripts.js
:so they should take
--config=test/jest.conf.js
as an extra argument:Having separate
jest.conf.js
will make it more consistent withkarma.conf.js
andprotractor.conf.js
way of setup.Also,
package.json
will be less cluttered.Shouldn't mix concerns inside
package.json
.The text was updated successfully, but these errors were encountered: