(docs): add Jest and ESLint subsections to Customization#697
Merged
agilgur5 merged 1 commit intojaredpalmer:masterfrom Apr 26, 2020
Merged
Conversation
- while the docs do say these are run fairly directly, recently folks
seem to be particularly confused about how to configure Jest
- so explicitly mention `jest.config.js` and `.eslintrc.js` to make
that a bit more clear
- don't mention `package.json` options as I think that should be
implicitly implied enough now
- and because ESLint config works a bit differently in the two
cases (see existing issue)
- and more explicitly say that all `tsdx test` flags are forwarded to
Jest
- also add links to "its own config" for each of the Babel, Jest, and
ESLint subsections so people can look at the source quickly if they
want
- the Babel one is a bit harder to read though
- and specify the merge behavior for each, i.e. shallow or deep
- and the ordering when it comes to Babel, as order matters there
010a0c8 to
c3a7e76
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
while the docs do say these are run fairly directly, recently folks
seem to be particularly confused about how to configure Jest
jest.config.jsand.eslintrc.jsto makethat a bit more clear
package.jsonoptions as I think that should beimplicitly implied enough now
cases (see existing issue)
tsdx testflags are forwarded toJest
also add links to "its own config" for each of the Babel, Jest, and
ESLint subsections so people can look at the source quickly if they
want
and specify the merge behavior for each, i.e. shallow or deep
To help with issues like #695 and #692 (comment) as I guess it's not clear enough that you can do this already
Also specifies merge behavior of Babel since #543 is a thing