Skip to content

Commit

Permalink
chore: removed useless 'jest-environment-jsdom-sixteen'
Browse files Browse the repository at this point in the history
  • Loading branch information
hextion committed Aug 2, 2024
1 parent abd431c commit 108aee1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 102 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const ignoredModules = ['simplebar'];

module.exports = {
preset: 'ts-jest/presets/js-with-ts',
testEnvironment: 'jest-environment-jsdom-sixteen',
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['./packages/setupTests.ts'],
modulePathIgnorePatterns: ['dist'],
globalSetup: './packages/globalSetup.ts',
Expand Down
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"lint:css": "stylelint ./packages/**/*.css",
"lint:js": "eslint ./packages --ext .ts,.tsx,.js,.jsx --max-warnings 0",
"lint:deps": "node ./bin/lint-deps.js",
"test": "jest --watchAll=false --env=jsdom-sixteen",
"test": "jest --watchAll=false",
"test:screenshots": "./bin/run-screenshots.sh",
"test:codemod": "jest --config=jest.codemod.config.js packages/codemod/",
"format": "prettier --write \"./{packages,bin}/**/*.{ts,tsx,js,jsx,css,json}\"",
Expand Down Expand Up @@ -174,7 +174,6 @@
"husky": "^4.3.8",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.6.3",
"jest-environment-jsdom-sixteen": "^1.0.3",
"jest-image-snapshot": "^6.1.0",
"json": "^10.0.0",
"lerna": "^6.1.0",
Expand Down Expand Up @@ -300,9 +299,6 @@
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"jest": {
"testEnvironment": "jest-environment-jsdom-sixteen"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
Expand Down
4 changes: 0 additions & 4 deletions packages/amount-input/src/Component.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* @jest-environment jsdom-sixteen
*/

import React, { useState } from 'react';
import { render, fireEvent, act } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
Expand Down
2 changes: 1 addition & 1 deletion packages/select-with-tags/src/component.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ describe('SelectWithTags', () => {
});

describe('Tags tests', () => {
xit('should render tag if click on option, delete tag if click on cross', async () => {
it('should render tag if click on option, delete tag if click on cross', async () => {
const getOptions = () => document.querySelectorAll('[role="option"]');

const { container } = render(
Expand Down
92 changes: 1 addition & 91 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2407,17 +2407,6 @@
"@types/node" "*"
jest-mock "^27.5.1"

"@jest/fake-timers@^25.1.0":
version "25.5.0"
resolved "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-25.5.0.tgz"
integrity sha512-9y2+uGnESw/oyOI3eww9yaxdZyHq7XvprfP/eeoCsjqKYts2yRlsHS/SgjPDV8FyMfn2nbMy8YzUk6nyvdLOpQ==
dependencies:
"@jest/types" "^25.5.0"
jest-message-util "^25.5.0"
jest-mock "^25.5.0"
jest-util "^25.5.0"
lolex "^5.0.0"

"@jest/fake-timers@^26.6.2":
version "26.6.2"
resolved "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-26.6.2.tgz"
Expand Down Expand Up @@ -2669,16 +2658,6 @@
slash "^3.0.0"
write-file-atomic "^4.0.2"

"@jest/types@^25.5.0":
version "25.5.0"
resolved "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz"
integrity sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==
dependencies:
"@types/istanbul-lib-coverage" "^2.0.0"
"@types/istanbul-reports" "^1.1.1"
"@types/yargs" "^15.0.0"
chalk "^3.0.0"

"@jest/types@^26.6.2":
version "26.6.2"
resolved "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz"
Expand Down Expand Up @@ -5413,14 +5392,6 @@
dependencies:
"@types/istanbul-lib-coverage" "*"

"@types/istanbul-reports@^1.1.1":
version "1.1.2"
resolved "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz"
integrity sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==
dependencies:
"@types/istanbul-lib-coverage" "*"
"@types/istanbul-lib-report" "*"

"@types/istanbul-reports@^3.0.0":
version "3.0.0"
resolved "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz"
Expand Down Expand Up @@ -5729,11 +5700,6 @@
dependencies:
"@types/node" "*"

"@types/stack-utils@^1.0.1":
version "1.0.1"
resolved "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-1.0.1.tgz"
integrity sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw==

"@types/stack-utils@^2.0.0":
version "2.0.0"
resolved "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.0.tgz"
Expand Down Expand Up @@ -13132,16 +13098,6 @@ jest-each@^27.5.1:
jest-util "^27.5.1"
pretty-format "^27.5.1"

jest-environment-jsdom-sixteen@^1.0.3:
version "1.0.3"
resolved "https://registry.npmjs.org/jest-environment-jsdom-sixteen/-/jest-environment-jsdom-sixteen-1.0.3.tgz"
integrity sha512-CwMqDUUfSl808uGPWXlNA1UFkWFgRmhHvyAjhCmCry6mYq4b/nn80MMN7tglqo5XgrANIs/w+mzINPzbZ4ZZrQ==
dependencies:
"@jest/fake-timers" "^25.1.0"
jest-mock "^25.1.0"
jest-util "^25.1.0"
jsdom "^16.2.1"

jest-environment-jsdom@^26.6.2:
version "26.6.2"
resolved "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz"
Expand Down Expand Up @@ -13360,20 +13316,6 @@ jest-matcher-utils@^27.5.1:
jest-get-type "^27.5.1"
pretty-format "^27.5.1"

jest-message-util@^25.5.0:
version "25.5.0"
resolved "https://registry.npmjs.org/jest-message-util/-/jest-message-util-25.5.0.tgz"
integrity sha512-ezddz3YCT/LT0SKAmylVyWWIGYoKHOFOFXx3/nA4m794lfVUskMcwhip6vTgdVrOtYdjeQeis2ypzes9mZb4EA==
dependencies:
"@babel/code-frame" "^7.0.0"
"@jest/types" "^25.5.0"
"@types/stack-utils" "^1.0.1"
chalk "^3.0.0"
graceful-fs "^4.2.4"
micromatch "^4.0.2"
slash "^3.0.0"
stack-utils "^1.0.1"

jest-message-util@^26.6.2:
version "26.6.2"
resolved "https://registry.npmjs.org/jest-message-util/-/jest-message-util-26.6.2.tgz"
Expand Down Expand Up @@ -13419,13 +13361,6 @@ jest-message-util@^28.1.3:
slash "^3.0.0"
stack-utils "^2.0.3"

jest-mock@^25.1.0, jest-mock@^25.5.0:
version "25.5.0"
resolved "https://registry.npmjs.org/jest-mock/-/jest-mock-25.5.0.tgz"
integrity sha512-eXWuTV8mKzp/ovHc5+3USJMYsTBhyQ+5A1Mak35dey/RG8GlM4YWVylZuGgVXinaW6tpvk/RSecmF37FKUlpXA==
dependencies:
"@jest/types" "^25.5.0"

jest-mock@^26.6.2:
version "26.6.2"
resolved "https://registry.npmjs.org/jest-mock/-/jest-mock-26.6.2.tgz"
Expand Down Expand Up @@ -13695,17 +13630,6 @@ jest-snapshot@^27.5.1:
pretty-format "^27.5.1"
semver "^7.3.2"

jest-util@^25.1.0, jest-util@^25.5.0:
version "25.5.0"
resolved "https://registry.npmjs.org/jest-util/-/jest-util-25.5.0.tgz"
integrity sha512-KVlX+WWg1zUTB9ktvhsg2PXZVdkI1NBevOJSkTKYAyXyH4QSvh+Lay/e/v+bmaFfrkfx43xD8QTfgobzlEXdIA==
dependencies:
"@jest/types" "^25.5.0"
chalk "^3.0.0"
graceful-fs "^4.2.4"
is-ci "^2.0.0"
make-dir "^3.0.0"

jest-util@^26.1.0, jest-util@^26.6.2:
version "26.6.2"
resolved "https://registry.npmjs.org/jest-util/-/jest-util-26.6.2.tgz"
Expand Down Expand Up @@ -13972,7 +13896,7 @@ jscodeshift@^0.15.1:
temp "^0.8.4"
write-file-atomic "^2.3.0"

jsdom@^16.2.1, jsdom@^16.4.0, jsdom@^16.6.0:
jsdom@^16.4.0, jsdom@^16.6.0:
version "16.7.0"
resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.7.0.tgz#918ae71965424b197c819f8183a754e18977b710"
integrity sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==
Expand Down Expand Up @@ -14553,13 +14477,6 @@ log-update@^4.0.0:
slice-ansi "^4.0.0"
wrap-ansi "^6.2.0"

lolex@^5.0.0:
version "5.1.2"
resolved "https://registry.npmjs.org/lolex/-/lolex-5.1.2.tgz"
integrity sha512-h4hmjAvHTmd+25JSwrtTIuwbKdwg5NzZVRMLn9saij4SZaepCrTCxPr35H/3bjwfMJtN+t3CX8672UIkglz28A==
dependencies:
"@sinonjs/commons" "^1.7.0"

longest-streak@^2.0.0:
version "2.0.4"
resolved "https://registry.yarnpkg.com/longest-streak/-/longest-streak-2.0.4.tgz#b8599957da5b5dab64dee3fe316fa774597d90e4"
Expand Down Expand Up @@ -19915,13 +19832,6 @@ stable@^0.1.8:
resolved "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz"
integrity sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==

stack-utils@^1.0.1:
version "1.0.4"
resolved "https://registry.npmjs.org/stack-utils/-/stack-utils-1.0.4.tgz"
integrity sha512-IPDJfugEGbfizBwBZRZ3xpccMdRyP5lqsBWXGQWimVjua/ccLCeMOAVjlc1R7LxFjo5sEDhyNIXd8mo/AiDS9w==
dependencies:
escape-string-regexp "^2.0.0"

stack-utils@^2.0.2, stack-utils@^2.0.3:
version "2.0.6"
resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.6.tgz#aaf0748169c02fc33c8232abccf933f54a1cc34f"
Expand Down

0 comments on commit 108aee1

Please sign in to comment.