From 108798307afe0e61a667281b3ba280327338f817 Mon Sep 17 00:00:00 2001 From: Sam Kvale Date: Wed, 1 May 2019 15:51:48 -0500 Subject: [PATCH] docs(readme): specify Jest v24 is used. Clarify jsdom flag (#68) --- README.md | 2 +- src/createRollupConfig.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0b62a930a..be8f5196d 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ Examples ### `tsdx test` -This runs Jest v23.x in watch mode. See [https://jestjs.io](https://jestjs.io) for options. If you are trying to test a React component, you likely want to pass in `--env=jsdom` just like you do in Create React App. +This runs Jest v24.x in watch mode. See [https://jestjs.io](https://jestjs.io) for options. If you are using the React template, jest uses the flag `--env=jsdom` by default. ## Author diff --git a/src/createRollupConfig.ts b/src/createRollupConfig.ts index 97ad3ef97..818e86b92 100644 --- a/src/createRollupConfig.ts +++ b/src/createRollupConfig.ts @@ -122,7 +122,7 @@ export function createRollupConfig( compress: { keep_infinity: true, pure_getters: true, - collapse_vars: false + collapse_vars: false, }, ecma: 5, toplevel: format === 'es' || format === 'cjs',