Fix/upgrade testing

This commit is contained in:
Dustin Brett 2022-01-14 12:03:31 -08:00
parent b9d83e468c
commit 64b235337a
3 changed files with 14 additions and 7 deletions

View File

@ -3,6 +3,7 @@ module.exports = {
setupFilesAfterEnv: [ setupFilesAfterEnv: [
"@testing-library/jest-dom/extend-expect", "@testing-library/jest-dom/extend-expect",
"jsdom-worker", "jsdom-worker",
"jest-next-dynamic",
], ],
testEnvironment: "jsdom", testEnvironment: "jsdom",
}; };

View File

@ -57,7 +57,7 @@
"@next/eslint-plugin-next": "^12.0.8", "@next/eslint-plugin-next": "^12.0.8",
"@stylelint/postcss-css-in-js": "^0.37.2", "@stylelint/postcss-css-in-js": "^0.37.2",
"@testing-library/jest-dom": "^5.16.1", "@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^12.1.2", "@testing-library/react": "^13.0.0-alpha.5",
"@types/ini": "^1.3.31", "@types/ini": "^1.3.31",
"@types/jest": "^27.4.0", "@types/jest": "^27.4.0",
"@types/node": "^17.0.8", "@types/node": "^17.0.8",
@ -91,6 +91,7 @@
"eslint-plugin-unicorn": "^40.0.0", "eslint-plugin-unicorn": "^40.0.0",
"husky": "^7.0.4", "husky": "^7.0.4",
"jest": "^27.4.7", "jest": "^27.4.7",
"jest-next-dynamic": "^1.0.1",
"jsdom-worker": "^0.2.1", "jsdom-worker": "^0.2.1",
"lint-staged": "^12.1.7", "lint-staged": "^12.1.7",
"monaco-editor": "^0.31.1", "monaco-editor": "^0.31.1",

View File

@ -703,7 +703,7 @@
dependencies: dependencies:
"@babel/core" ">=7.9.0" "@babel/core" ">=7.9.0"
"@testing-library/dom@^8.0.0", "@testing-library/dom@^8.11.1": "@testing-library/dom@^8.11.1", "@testing-library/dom@^8.5.0":
version "8.11.1" version "8.11.1"
resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-8.11.1.tgz#03fa2684aa09ade589b460db46b4c7be9fc69753" resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-8.11.1.tgz#03fa2684aa09ade589b460db46b4c7be9fc69753"
integrity sha512-3KQDyx9r0RKYailW2MiYrSSKEfH0GTkI51UGEvJenvcoDoeRYs0PZpi2SXqtnMClQvCqdtTTpOfFETDTVADpAg== integrity sha512-3KQDyx9r0RKYailW2MiYrSSKEfH0GTkI51UGEvJenvcoDoeRYs0PZpi2SXqtnMClQvCqdtTTpOfFETDTVADpAg==
@ -732,13 +732,13 @@
lodash "^4.17.15" lodash "^4.17.15"
redent "^3.0.0" redent "^3.0.0"
"@testing-library/react@^12.1.2": "@testing-library/react@^13.0.0-alpha.5":
version "12.1.2" version "13.0.0-alpha.5"
resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-12.1.2.tgz#f1bc9a45943461fa2a598bb4597df1ae044cfc76" resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-13.0.0-alpha.5.tgz#29bfc36b550e2a1025cbebf7254d5a0a46cb58c5"
integrity sha512-ihQiEOklNyHIpo2Y8FREkyD1QAea054U0MVbwH1m8N9TxeFz+KoJ9LkqoKqJlzx2JDm56DVwaJ1r36JYxZM05g== integrity sha512-QrxKC/7pTE0ze3wLZNaenGJqsLcbAJL71XqU/ryJTL2pqZBjiJHuxZavl2ZQAxnBQkDQF9oh9my3bKPstWfnhA==
dependencies: dependencies:
"@babel/runtime" "^7.12.5" "@babel/runtime" "^7.12.5"
"@testing-library/dom" "^8.0.0" "@testing-library/dom" "^8.5.0"
"@tokenizer/token@^0.3.0": "@tokenizer/token@^0.3.0":
version "0.3.0" version "0.3.0"
@ -3545,6 +3545,11 @@ jest-mock@^27.4.6:
"@jest/types" "^27.4.2" "@jest/types" "^27.4.2"
"@types/node" "*" "@types/node" "*"
jest-next-dynamic@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/jest-next-dynamic/-/jest-next-dynamic-1.0.1.tgz#b8af62babeda3cff0cf0a6e0af6de3a9dfc8d6cd"
integrity sha512-peo9yRvUn8u6PZro9AzzjxpgUc+1NZhZMan+1xzk7Bz1vA0d5IC2Iw8E7bkC2cwl9AG3XxTaqPVAXbC3aMbVkw==
jest-pnp-resolver@^1.2.2: jest-pnp-resolver@^1.2.2:
version "1.2.2" version "1.2.2"
resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz#b704ac0ae028a89108a4d040b3f919dfddc8e33c" resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz#b704ac0ae028a89108a4d040b3f919dfddc8e33c"