Skip to content

Commit

Permalink
fix: require jest diff properly for version 27
Browse files Browse the repository at this point in the history
jest with version 27 exports only a named export for the diff
function, so we had to fix the master branch here.

https://github.com/facebook/jest/blob/d38156ccd7a68e52372b4eb6fc02afbadd5b703e/packages/jest-diff/src/index.ts#L63
Co-authored-by: Björn Brauer <bjoern.brauer@new-work.se>
  • Loading branch information
robertkowalski and ZauberNerd committed Aug 26, 2021
1 parent 5d340ed commit e239764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/run.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { highlight } = require("cli-highlight");
const { pass, fail } = require("create-jest-runner");
const fs = require("fs");
const diff = require("jest-diff");
const { diff } = require("jest-diff");
const prettier = require("prettier");

module.exports = ({ testPath }) => {
Expand Down

0 comments on commit e239764

Please sign in to comment.