diff --git a/packages/components/jest.config.js b/packages/components/jest.config.js new file mode 100644 index 0000000000..8ce6439de1 --- /dev/null +++ b/packages/components/jest.config.js @@ -0,0 +1,5 @@ +/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ +module.exports = { + preset: '@stencil/core/testing', + testEnvironment: 'node', +}; diff --git a/packages/components/package.json b/packages/components/package.json index 51266f65e5..c305aed19a 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/core": "4.7.2", "@stencil-community/eslint-plugin": "0.7.1", + "@stencil/core": "4.7.2", "@stencil/react-output-target": "0.5.3", "@stencil/sass": "3.0.7", "@types/jest": "27.5.2", @@ -60,6 +60,7 @@ "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 305abf0a04..095e456df5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -121,6 +121,9 @@ 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 @@ -9420,7 +9423,7 @@ packages: engines: {node: ^10 || ^12 || >=14} hasBin: true peerDependencies: - postcss: ^8.1.0 + postcss: '>=8.4.31' dependencies: browserslist: 4.21.10 caniuse-lite: 1.0.30001538 @@ -9436,7 +9439,7 @@ packages: engines: {node: ^10 || ^12 || >=14} hasBin: true peerDependencies: - postcss: ^8.1.0 + postcss: '>=8.4.31' dependencies: browserslist: 4.21.10 caniuse-lite: 1.0.30001538 @@ -12917,6 +12920,7 @@ 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: @@ -12928,6 +12932,7 @@ 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 @@ -13362,7 +13367,7 @@ packages: resolution: {integrity: sha512-9QUHam5JyXwGUxaaMvoFQVT44tohpEFpM8xBdPfdwTYGM0AItS1iTQz0MpsF8Jroh7GF5Jt2GVPaYgvy8qD2Fw==} engines: {node: ^10 || ^12 || >=14} peerDependencies: - postcss: ^8.0.0 + postcss: '>=8.4.31' dependencies: fancy-log: 1.3.3 plugin-error: 1.0.1 @@ -13817,7 +13822,7 @@ packages: resolution: {integrity: sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==} engines: {node: ^10 || ^12 || >= 14} peerDependencies: - postcss: ^8.1.0 + postcss: '>=8.4.31' dependencies: postcss: 8.4.31 dev: true @@ -16996,6 +17001,7 @@ 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 @@ -18059,7 +18065,7 @@ packages: resolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==} engines: {node: '>= 10'} peerDependencies: - postcss: '>=8.0.9' + postcss: '>=8.4.31' ts-node: '>=9.0.0' peerDependenciesMeta: postcss: @@ -18076,7 +18082,7 @@ packages: resolution: {integrity: sha512-YgO/yhtevGO/vJePCQmTxiaEwER94LABZN0ZMT4A0vsak9TpO+RvKRs7EmJ8peIlB9xfXCsS7M8LjqncsUZ5HA==} engines: {node: '>= 14.15.0'} peerDependencies: - postcss: ^7.0.0 || ^8.0.1 + postcss: '>=8.4.31' webpack: ^5.0.0 dependencies: cosmiconfig: 8.2.0 @@ -18094,7 +18100,7 @@ packages: resolution: {integrity: sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==} engines: {node: ^10 || ^12 || >= 14} peerDependencies: - postcss: ^8.1.0 + postcss: '>=8.4.31' dependencies: postcss: 8.4.31 dev: true @@ -18103,7 +18109,7 @@ packages: resolution: {integrity: sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==} engines: {node: ^10 || ^12 || >= 14} peerDependencies: - postcss: ^8.1.0 + postcss: '>=8.4.31' dependencies: icss-utils: 5.1.0(postcss@8.4.31) postcss: 8.4.31 @@ -18115,7 +18121,7 @@ packages: resolution: {integrity: sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==} engines: {node: ^10 || ^12 || >= 14} peerDependencies: - postcss: ^8.1.0 + postcss: '>=8.4.31' dependencies: postcss: 8.4.31 postcss-selector-parser: 6.0.13 @@ -18125,7 +18131,7 @@ packages: resolution: {integrity: sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==} engines: {node: ^10 || ^12 || >= 14} peerDependencies: - postcss: ^8.1.0 + postcss: '>=8.4.31' dependencies: icss-utils: 5.1.0(postcss@8.4.31) postcss: 8.4.31 @@ -18139,7 +18145,7 @@ packages: resolution: {integrity: sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==} engines: {node: '>=12.0'} peerDependencies: - postcss: ^8.3.3 + postcss: '>=8.4.31' dependencies: postcss: 8.4.31 dev: true @@ -18148,7 +18154,7 @@ packages: resolution: {integrity: sha512-AjKOeiwAitL/MXxQW2DliT28EKukvvbEWx3LBmJIRN8KfBGZbRTxNYW0kSqi1COiTZ57nZ9NW06S6ux//N1c9A==} engines: {node: '>=12.0'} peerDependencies: - postcss: ^8.4.29 + postcss: '>=8.4.31' dependencies: postcss: 8.4.31 dev: true @@ -18165,7 +18171,7 @@ packages: resolution: {integrity: sha512-FUzyxfI5l2tKmXdYc6VTu3TWZsInayEKPbiyW+P6vmmIrrb4I6CGX0BFoewgYHLK+oIL5FECEK02REYRpBvUCw==} engines: {node: '>=10'} peerDependencies: - postcss: ^8.0.0 + postcss: '>=8.4.31' dependencies: make-dir: 3.1.0 mime: 2.5.2 @@ -20116,7 +20122,7 @@ packages: resolution: {integrity: sha512-+Rr2Dd4b72CWA4qoj1Kk+y449nP/WJsrD0nzQAWkmPPIuyVcy2GMIcfNr0Z8JJOLjRvtlkKxa49FCNXMePBikQ==} engines: {node: ^14.13.1 || >=16.13.0 || >=18.0.0} peerDependencies: - postcss: ^8.4.21 + postcss: '>=8.4.31' stylelint: ^15.2.0 || >=15 dependencies: postcss: 8.4.31