Skip to content

Commit

Permalink
(deps): upgrade to Jest 25 (jaredpalmer#679)
Browse files Browse the repository at this point in the history
- upgrade jest, ts-jest, @types/jest, and jest-watch-typeahead

- Jest 25 changes exports so change internal import to handle properly

- Jest 25 drops support for Node <8 that doesn't impact us
  - we only support Node 10+ anyway
- Jest 25 upgrades JSDOM from v11 to v15, which is potentially breaking
  for any users that relied on some older behavior

- yarn.lock changed heavily
  - from a look-over, many are from babel-jest (which is included with
    Jest) upgrading its Babel deps, some from istanbul for coverage,
    and lots of other transitive deps I can't really tell from a glance
  • Loading branch information
agilgur5 authored and paul-vd committed Dec 1, 2020
1 parent 5b5f6a8 commit 4aa1025
Show file tree
Hide file tree
Showing 4 changed files with 1,119 additions and 1,098 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ Examples
### `tsdx test`
This runs Jest v24.x, forwarding all CLI flags to it. See [https://jestjs.io](https://jestjs.io) for options. For example, if you would like to run in watch mode, you can run `tsdx test --watch`. So you could set up your `package.json` `scripts` like:
This runs Jest, forwarding all CLI flags to it. See [https://jestjs.io](https://jestjs.io) for options. For example, if you would like to run in watch mode, you can run `tsdx test --watch`. So you could set up your `package.json` `scripts` like:
```json
{
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-node-resolve": "^7.1.0",
"@rollup/plugin-replace": "^2.2.1",
"@types/jest": "^24.0.15",
"@types/jest": "^25.2.1",
"@typescript-eslint/eslint-plugin": "^2.12.0",
"@typescript-eslint/parser": "^2.12.0",
"ansi-escapes": "^4.2.1",
Expand All @@ -80,8 +80,8 @@
"eslint-plugin-react-hooks": "^2.2.0",
"execa": "4.0.0",
"fs-extra": "^9.0.0",
"jest": "^24.8.0",
"jest-watch-typeahead": "^0.4.0",
"jest": "^25.3.0",
"jest-watch-typeahead": "^0.5.0",
"jpjs": "^1.2.1",
"lodash.merge": "^4.6.2",
"ora": "^4.0.3",
Expand All @@ -97,7 +97,7 @@
"semver": "^7.1.1",
"shelljs": "^0.8.3",
"tiny-glob": "^0.2.6",
"ts-jest": "^24.0.2",
"ts-jest": "^25.3.1",
"tslib": "^1.9.3",
"typescript": "^3.7.3"
},
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import asyncro from 'asyncro';
import chalk from 'chalk';
import * as fs from 'fs-extra';
import jest from 'jest';
import * as jest from 'jest';
import { CLIEngine } from 'eslint';
import logError from './logError';
import path from 'path';
Expand Down
Loading

0 comments on commit 4aa1025

Please sign in to comment.