From 4e909567726973c91c05ccc5c37fc019def05b0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Zl=C3=A1mal?= Date: Wed, 26 May 2021 11:23:23 -0500 Subject: [PATCH] Use Jest version 27.0.1 See release notes: https://jestjs.io/blog/2021/05/25/jest-27 There is currently one issue with global `afterEach` callbacks order which I workarounded by using `afterAll` (see: https://github.com/facebook/jest/issues/11456). I will wait for the resolution of that issue and update our code accordingly. adeira-source-id: 154daeb2c02992787370c74c897cfb6a6164b0ab --- src/__tests__/SxDomTests.test.js | 5 ++++- src/__tests__/autoprefixRuntimeStyles.test.js | 5 ++++- src/__tests__/composability.test.js | 5 ++++- src/__tests__/injectRuntimeStyles.test.js | 5 ++++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/__tests__/SxDomTests.test.js b/src/__tests__/SxDomTests.test.js index d960e69..1754127 100644 --- a/src/__tests__/SxDomTests.test.js +++ b/src/__tests__/SxDomTests.test.js @@ -1,4 +1,7 @@ -// @flow +/** + * @flow + * @jest-environment jsdom + */ /* global document */ diff --git a/src/__tests__/autoprefixRuntimeStyles.test.js b/src/__tests__/autoprefixRuntimeStyles.test.js index d5959f6..a90a579 100644 --- a/src/__tests__/autoprefixRuntimeStyles.test.js +++ b/src/__tests__/autoprefixRuntimeStyles.test.js @@ -1,4 +1,7 @@ -// @flow +/** + * @flow + * @jest-environment jsdom + */ /* global document */ diff --git a/src/__tests__/composability.test.js b/src/__tests__/composability.test.js index 2cef555..6a23743 100644 --- a/src/__tests__/composability.test.js +++ b/src/__tests__/composability.test.js @@ -1,4 +1,7 @@ -// @flow +/** + * @flow + * @jest-environment jsdom + */ /* global document */ diff --git a/src/__tests__/injectRuntimeStyles.test.js b/src/__tests__/injectRuntimeStyles.test.js index 83033b1..174c3a3 100644 --- a/src/__tests__/injectRuntimeStyles.test.js +++ b/src/__tests__/injectRuntimeStyles.test.js @@ -1,4 +1,7 @@ -// @flow +/** + * @flow + * @jest-environment jsdom + */ /* global document */