From c5855a21f3e0587a490f1d6a449d8aaeb91874a8 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 8 Jul 2019 18:31:33 +0200 Subject: [PATCH] fix tests --- jest/setup-test-env.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jest/setup-test-env.js b/jest/setup-test-env.js index 8df56619..c585c86e 100644 --- a/jest/setup-test-env.js +++ b/jest/setup-test-env.js @@ -1,4 +1,4 @@ -import 'jest-dom/extend-expect' +import '@testing-library/jest-dom/extend-expect' // this is basically: afterEach(cleanup) import '@testing-library/react/cleanup-after-each' diff --git a/package.json b/package.json index eae8e013..69445b94 100644 --- a/package.json +++ b/package.json @@ -83,6 +83,7 @@ "@babel/node": "^7.4.5", "@babel/preset-env": "^7.4.5", "@svgr/webpack": "^4.3.0", + "@testing-library/jest-dom": "^4.0.0", "@testing-library/react": "^8.0.2", "babel-eslint": "^10.0.2", "babel-jest": "^24.8.0", @@ -96,7 +97,6 @@ "fs-extra": "^8.0.0", "identity-obj-proxy": "^3.0.0", "jest": "^24.8.0", - "jest-dom": "^4.0.0", "markdownlint-cli": "^0.17.0", "node-sass": "^4.12.0", "npm-run-all": "^4.1.5",