diff --git a/packages/components/.eslintignore b/packages/components/.eslintignore index 61a1507048..fa6ee59bad 100644 --- a/packages/components/.eslintignore +++ b/packages/components/.eslintignore @@ -6,4 +6,5 @@ www cypress stencil.config.ts cypress.config.js +jest.config.js .eslintrc.js diff --git a/packages/components/jest.config.js b/packages/components/jest.config.js index 8ce6439de1..cbabb343a1 100644 --- a/packages/components/jest.config.js +++ b/packages/components/jest.config.js @@ -1,5 +1,5 @@ /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ module.exports = { - preset: '@stencil/core/testing', - testEnvironment: 'node', + preset: 'ts-jest', + testEnvironment: 'jsdom', }; diff --git a/packages/components/package.json b/packages/components/package.json index c305aed19a..51266f65e5 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -46,8 +46,8 @@ "devDependencies": { "@percy/cli": "1.27.4", "@percy/cypress": "3.1.2", - "@stencil-community/eslint-plugin": "0.7.1", "@stencil/core": "4.7.2", + "@stencil-community/eslint-plugin": "0.7.1", "@stencil/react-output-target": "0.5.3", "@stencil/sass": "3.0.7", "@types/jest": "27.5.2", @@ -60,7 +60,6 @@ "eslint-plugin-react": "7.33.2", "jest": "27.5.1", "jest-cli": "27.5.1", - "jest-environment-node": "27.5.1", "npm-run-all": "4.1.5", "rimraf": "5.0.5", "sass": "1.69.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 095e456df5..305abf0a04 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -121,9 +121,6 @@ importers: jest-cli: specifier: 27.5.1 version: 27.5.1 - jest-environment-node: - specifier: 27.5.1 - version: 27.5.1 npm-run-all: specifier: 4.1.5 version: 4.1.5 @@ -9423,7 +9420,7 @@ packages: engines: {node: ^10 || ^12 || >=14} hasBin: true peerDependencies: - postcss: '>=8.4.31' + postcss: ^8.1.0 dependencies: browserslist: 4.21.10 caniuse-lite: 1.0.30001538 @@ -9439,7 +9436,7 @@ packages: engines: {node: ^10 || ^12 || >=14} hasBin: true peerDependencies: - postcss: '>=8.4.31' + postcss: ^8.1.0 dependencies: browserslist: 4.21.10 caniuse-lite: 1.0.30001538 @@ -12920,7 +12917,6 @@ packages: /fsevents@1.2.13: resolution: {integrity: sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==} engines: {node: '>= 4.0'} - os: [darwin] deprecated: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2 requiresBuild: true dependencies: @@ -12932,7 +12928,6 @@ packages: /fsevents@2.3.2: resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] requiresBuild: true optional: true @@ -13367,7 +13362,7 @@ packages: resolution: {integrity: sha512-9QUHam5JyXwGUxaaMvoFQVT44tohpEFpM8xBdPfdwTYGM0AItS1iTQz0MpsF8Jroh7GF5Jt2GVPaYgvy8qD2Fw==} engines: {node: ^10 || ^12 || >=14} peerDependencies: - postcss: '>=8.4.31' + postcss: ^8.0.0 dependencies: fancy-log: 1.3.3 plugin-error: 1.0.1 @@ -13822,7 +13817,7 @@ packages: resolution: {integrity: sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==} engines: {node: ^10 || ^12 || >= 14} peerDependencies: - postcss: '>=8.4.31' + postcss: ^8.1.0 dependencies: postcss: 8.4.31 dev: true @@ -17001,7 +16996,6 @@ packages: /nice-napi@1.0.2: resolution: {integrity: sha512-px/KnJAJZf5RuBGcfD+Sp2pAKq0ytz8j+1NehvgIGFkvtvFrDM3T8E4x/JJODXK9WZow8RRGrbA9QQ3hs+pDhA==} - os: ['!win32'] requiresBuild: true dependencies: node-addon-api: 3.2.1 @@ -18065,7 +18059,7 @@ packages: resolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==} engines: {node: '>= 10'} peerDependencies: - postcss: '>=8.4.31' + postcss: '>=8.0.9' ts-node: '>=9.0.0' peerDependenciesMeta: postcss: @@ -18082,7 +18076,7 @@ packages: resolution: {integrity: sha512-YgO/yhtevGO/vJePCQmTxiaEwER94LABZN0ZMT4A0vsak9TpO+RvKRs7EmJ8peIlB9xfXCsS7M8LjqncsUZ5HA==} engines: {node: '>= 14.15.0'} peerDependencies: - postcss: '>=8.4.31' + postcss: ^7.0.0 || ^8.0.1 webpack: ^5.0.0 dependencies: cosmiconfig: 8.2.0 @@ -18100,7 +18094,7 @@ packages: resolution: {integrity: sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==} engines: {node: ^10 || ^12 || >= 14} peerDependencies: - postcss: '>=8.4.31' + postcss: ^8.1.0 dependencies: postcss: 8.4.31 dev: true @@ -18109,7 +18103,7 @@ packages: resolution: {integrity: sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==} engines: {node: ^10 || ^12 || >= 14} peerDependencies: - postcss: '>=8.4.31' + postcss: ^8.1.0 dependencies: icss-utils: 5.1.0(postcss@8.4.31) postcss: 8.4.31 @@ -18121,7 +18115,7 @@ packages: resolution: {integrity: sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==} engines: {node: ^10 || ^12 || >= 14} peerDependencies: - postcss: '>=8.4.31' + postcss: ^8.1.0 dependencies: postcss: 8.4.31 postcss-selector-parser: 6.0.13 @@ -18131,7 +18125,7 @@ packages: resolution: {integrity: sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==} engines: {node: ^10 || ^12 || >= 14} peerDependencies: - postcss: '>=8.4.31' + postcss: ^8.1.0 dependencies: icss-utils: 5.1.0(postcss@8.4.31) postcss: 8.4.31 @@ -18145,7 +18139,7 @@ packages: resolution: {integrity: sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==} engines: {node: '>=12.0'} peerDependencies: - postcss: '>=8.4.31' + postcss: ^8.3.3 dependencies: postcss: 8.4.31 dev: true @@ -18154,7 +18148,7 @@ packages: resolution: {integrity: sha512-AjKOeiwAitL/MXxQW2DliT28EKukvvbEWx3LBmJIRN8KfBGZbRTxNYW0kSqi1COiTZ57nZ9NW06S6ux//N1c9A==} engines: {node: '>=12.0'} peerDependencies: - postcss: '>=8.4.31' + postcss: ^8.4.29 dependencies: postcss: 8.4.31 dev: true @@ -18171,7 +18165,7 @@ packages: resolution: {integrity: sha512-FUzyxfI5l2tKmXdYc6VTu3TWZsInayEKPbiyW+P6vmmIrrb4I6CGX0BFoewgYHLK+oIL5FECEK02REYRpBvUCw==} engines: {node: '>=10'} peerDependencies: - postcss: '>=8.4.31' + postcss: ^8.0.0 dependencies: make-dir: 3.1.0 mime: 2.5.2 @@ -20122,7 +20116,7 @@ packages: resolution: {integrity: sha512-+Rr2Dd4b72CWA4qoj1Kk+y449nP/WJsrD0nzQAWkmPPIuyVcy2GMIcfNr0Z8JJOLjRvtlkKxa49FCNXMePBikQ==} engines: {node: ^14.13.1 || >=16.13.0 || >=18.0.0} peerDependencies: - postcss: '>=8.4.31' + postcss: ^8.4.21 stylelint: ^15.2.0 || >=15 dependencies: postcss: 8.4.31