diff --git a/.github/workflows/continuous-delivery.yml b/.github/workflows/continuous-delivery.yml index 9f68102ef1..838c7f83bb 100644 --- a/.github/workflows/continuous-delivery.yml +++ b/.github/workflows/continuous-delivery.yml @@ -144,7 +144,9 @@ jobs: - name: Install dependencies run: | pnpm install - + - name: "Continuous Integration: build" + run: | + pnpm run --if-present build - name: "Continuous Integration: test" run: | pnpm run --if-present test diff --git a/packages/component-library-react/jest.config.mjs b/packages/component-library-react/jest.config.mjs index 8530122288..27e77e9689 100644 --- a/packages/component-library-react/jest.config.mjs +++ b/packages/component-library-react/jest.config.mjs @@ -14,9 +14,6 @@ const customJestConfig = { testEnvironment: 'jest-environment-jsdom', testPathIgnorePatterns: ['/dist/'], // transformIgnorePatterns: ['node_modules/(?!@utrecht/web-component-library-react)'], - moduleNameMapper: { - '^@utrecht/(.*)$': '/packages/$1/src/', - }, }; export default createJestConfig(customJestConfig); diff --git a/packages/component-library-react/package.json b/packages/component-library-react/package.json index a1a61ddfcd..d9b575b50f 100644 --- a/packages/component-library-react/package.json +++ b/packages/component-library-react/package.json @@ -49,14 +49,13 @@ "@rollup/plugin-commonjs": "26.0.1", "@rollup/plugin-json": "6.1.0", "@rollup/plugin-node-resolve": "15.2.3", - "@testing-library/dom": "8.20.1", - "@testing-library/jest-dom": "5.17.0", - "@testing-library/react": "13.4.0", - "@testing-library/user-event": "14.5.1", - "@types/jest": "29.5.11", + "@testing-library/dom": "10.4.0", + "@testing-library/jest-dom": "6.5.0", + "@testing-library/react": "16.0.1", + "@testing-library/user-event": "14.5.2", + "@types/jest": "29.5.12", "@types/lodash.chunk": "4.2.9", "@types/react": "18.3.3", - "@types/testing-library__jest-dom": "5.14.9", "@utrecht/accordion-css": "workspace:*", "@utrecht/alert-css": "workspace:*", "@utrecht/alert-dialog-css": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6857b387d1..deb1aca04a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1456,29 +1456,26 @@ importers: specifier: 15.2.3 version: 15.2.3(rollup@4.18.0) '@testing-library/dom': - specifier: 8.20.1 - version: 8.20.1 + specifier: 10.4.0 + version: 10.4.0 '@testing-library/jest-dom': - specifier: 5.17.0 - version: 5.17.0 + specifier: 6.5.0 + version: 6.5.0 '@testing-library/react': - specifier: 13.4.0 - version: 13.4.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 16.0.1 + version: 16.0.1(@testing-library/dom@10.4.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@testing-library/user-event': - specifier: 14.5.1 - version: 14.5.1(@testing-library/dom@8.20.1) + specifier: 14.5.2 + version: 14.5.2(@testing-library/dom@10.4.0) '@types/jest': - specifier: 29.5.11 - version: 29.5.11 + specifier: 29.5.12 + version: 29.5.12 '@types/lodash.chunk': specifier: 4.2.9 version: 4.2.9 '@types/react': specifier: 18.3.3 version: 18.3.3 - '@types/testing-library__jest-dom': - specifier: 5.14.9 - version: 5.14.9 '@utrecht/accordion-css': specifier: workspace:* version: link:../../components/accordion @@ -4983,6 +4980,9 @@ packages: '@adobe/css-tools@4.3.2': resolution: {integrity: sha512-DA5a1C0gD/pLOvhv33YMrbf2FK3oUzwNl9oOJqE4XVjuEtt6XIakRcsd7eLiOSPkp1kTRQGICTA8cKra/vFbjw==} + '@adobe/css-tools@4.4.0': + resolution: {integrity: sha512-Ff9+ksdQQB3rMncgqDK78uLznstjyfIf2Arnh22pW8kBpLs6rpKDwgnZT46hin5Hl1WzazzK64DOrhSwYpS7bQ==} + '@aduh95/viz.js@3.4.0': resolution: {integrity: sha512-KI2nVf9JdwWCXqK6RVf+9/096G7VWN4Z84mnynlyZKao2xQENW8WNEjLmvdlxS5X8PNWXFC1zqwm7tveOXw/4A==} @@ -9992,6 +9992,10 @@ packages: '@angular/platform-browser': '>= 15.1.0' '@angular/router': '>= 15.1.0' + '@testing-library/dom@10.4.0': + resolution: {integrity: sha512-pemlzrSESWbdAloYml3bAJMEfNh1Z7EduzqPKprCH5S341frlpYnUEW0H72dLxa6IsYr+mPno20GiSm+h9dEdQ==} + engines: {node: '>=18'} + '@testing-library/dom@8.20.1': resolution: {integrity: sha512-/DiOQ5xBxgdYRC8LNk7U+RWat0S3qRLeIw3ZIkMQ9kkVlRmwD/Eg8k8CqIpD6GW7u20JIUOfMKbxtiLutpjQ4g==} engines: {node: '>=12'} @@ -10004,15 +10008,27 @@ packages: resolution: {integrity: sha512-ynmNeT7asXyH3aSVv4vvX4Rb+0qjOhdNHnO/3vuZNqPmhDpV/+rCSGwQ7bLcmU2cJ4dvoheIO85LQj0IbJHEtg==} engines: {node: '>=8', npm: '>=6', yarn: '>=1'} - '@testing-library/react@13.4.0': - resolution: {integrity: sha512-sXOGON+WNTh3MLE9rve97ftaZukN3oNf2KjDy7YTx6hcTO2uuLHuCGynMDhFwGw/jYf4OJ2Qk0i4i79qMNNkyw==} - engines: {node: '>=12'} + '@testing-library/jest-dom@6.5.0': + resolution: {integrity: sha512-xGGHpBXYSHUUr6XsKBfs85TWlYKpTc37cSBBVrXcib2MkHLboWlkClhWF37JKlDb9KEq3dHs+f2xR7XJEWGBxA==} + engines: {node: '>=14', npm: '>=6', yarn: '>=1'} + + '@testing-library/react@16.0.1': + resolution: {integrity: sha512-dSmwJVtJXmku+iocRhWOUFbrERC76TX2Mnf0ATODz8brzAZrMBbzLwQixlBSanZxR6LddK3eiwpSFZgDET1URg==} + engines: {node: '>=18'} peerDependencies: + '@testing-library/dom': ^10.0.0 + '@types/react': ^18.0.0 + '@types/react-dom': ^18.0.0 react: ^18.0.0 react-dom: ^18.0.0 + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true - '@testing-library/user-event@14.5.1': - resolution: {integrity: sha512-UCcUKrUYGj7ClomOo2SpNVvx4/fkd/2BbIHDCle8A0ax+P3bU7yJwDBDrS6ZwdTMARWTGODX1hEsCcO+7beJjg==} + '@testing-library/user-event@14.5.2': + resolution: {integrity: sha512-YAh82Wh4TIrxYLmfGcixwD18oIjyC1pFQC2Y01F2lzV2HTMiYrI0nze0FD0ocB//CKS/7jIUgae+adPqxK5yCQ==} engines: {node: '>=12', npm: '>=6'} peerDependencies: '@testing-library/dom': '>=7.21.4' @@ -10364,9 +10380,6 @@ packages: '@types/react-dom@16.9.24': resolution: {integrity: sha512-Gcmq2JTDheyWn/1eteqyzzWKSqDjYU6KYsIvH7thb7CR5OYInAWOX+7WnKf6PaU/cbdOc4szJItcDEJO7UGmfA==} - '@types/react-dom@18.2.17': - resolution: {integrity: sha512-rvrT/M7Df5eykWFxn6MYt5Pem/Dbyc1N8Y0S9Mrkw2WFCRiqUgw9P7ul2NpwsXCSM1DVdENzdG9J5SreqfAIWg==} - '@types/react-dom@18.3.0': resolution: {integrity: sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg==} @@ -12901,6 +12914,9 @@ packages: dom-accessibility-api@0.5.16: resolution: {integrity: sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==} + dom-accessibility-api@0.6.3: + resolution: {integrity: sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==} + dom-converter@0.2.0: resolution: {integrity: sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==} @@ -21974,6 +21990,8 @@ snapshots: '@adobe/css-tools@4.3.2': {} + '@adobe/css-tools@4.4.0': {} + '@aduh95/viz.js@3.4.0': {} '@algolia/autocomplete-core@1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.21.1)(search-insights@2.13.0)': @@ -31078,7 +31096,7 @@ snapshots: '@storybook/testing-library@0.2.2': dependencies: '@testing-library/dom': 9.3.3 - '@testing-library/user-event': 14.5.1(@testing-library/dom@9.3.3) + '@testing-library/user-event': 14.5.2(@testing-library/dom@9.3.3) ts-dedent: 2.2.0 '@storybook/theming@6.5.16(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': @@ -31358,6 +31376,17 @@ snapshots: '@testing-library/dom': 8.20.1 tslib: 2.6.2 + '@testing-library/dom@10.4.0': + dependencies: + '@babel/code-frame': 7.24.7 + '@babel/runtime': 7.24.7 + '@types/aria-query': 5.0.4 + aria-query: 5.3.0 + chalk: 4.1.2 + dom-accessibility-api: 0.5.16 + lz-string: 1.5.0 + pretty-format: 27.5.1 + '@testing-library/dom@8.20.1': dependencies: '@babel/code-frame': 7.23.5 @@ -31371,7 +31400,7 @@ snapshots: '@testing-library/dom@9.3.3': dependencies: - '@babel/code-frame': 7.23.5 + '@babel/code-frame': 7.24.7 '@babel/runtime': 7.24.7 '@types/aria-query': 5.0.4 aria-query: 5.1.3 @@ -31392,19 +31421,31 @@ snapshots: lodash: 4.17.21 redent: 3.0.0 - '@testing-library/react@13.4.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@testing-library/jest-dom@6.5.0': + dependencies: + '@adobe/css-tools': 4.4.0 + aria-query: 5.3.0 + chalk: 3.0.0 + css.escape: 1.5.1 + dom-accessibility-api: 0.6.3 + lodash: 4.17.21 + redent: 3.0.0 + + '@testing-library/react@16.0.1(@testing-library/dom@10.4.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.7 - '@testing-library/dom': 8.20.1 - '@types/react-dom': 18.2.17 + '@testing-library/dom': 10.4.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.3 + '@types/react-dom': 18.3.0 - '@testing-library/user-event@14.5.1(@testing-library/dom@8.20.1)': + '@testing-library/user-event@14.5.2(@testing-library/dom@10.4.0)': dependencies: - '@testing-library/dom': 8.20.1 + '@testing-library/dom': 10.4.0 - '@testing-library/user-event@14.5.1(@testing-library/dom@9.3.3)': + '@testing-library/user-event@14.5.2(@testing-library/dom@9.3.3)': dependencies: '@testing-library/dom': 9.3.3 @@ -31778,10 +31819,6 @@ snapshots: dependencies: '@types/react': 16.14.54 - '@types/react-dom@18.2.17': - dependencies: - '@types/react': 18.3.3 - '@types/react-dom@18.3.0': dependencies: '@types/react': 18.3.3 @@ -35091,6 +35128,8 @@ snapshots: dom-accessibility-api@0.5.16: {} + dom-accessibility-api@0.6.3: {} + dom-converter@0.2.0: dependencies: utila: 0.4.0