Files
teleport/jest.config.js
T
dependabot[bot]andRafał Cieślak e038d32802 Bump the ui group with 36 updates (#59802)
* Bump the ui group with 36 updates

Bumps the ui group with 36 updates:

| Package | From | To |
| --- | --- | --- |
| [@codemirror/autocomplete](https://github.com/codemirror/autocomplete) | `6.18.6` | `6.19.0` |
| [@codemirror/lang-sql](https://github.com/codemirror/lang-sql) | `6.9.1` | `6.10.0` |
| [@codemirror/view](https://github.com/codemirror/view) | `6.38.1` | `6.38.4` |
| [@grpc/grpc-js](https://github.com/grpc/grpc-node) | `1.13.4` | `1.14.0` |
| [@tanstack/react-query](https://github.com/TanStack/query/tree/HEAD/packages/react-query) | `5.85.6` | `5.90.2` |
| [@uiw/codemirror-themes](https://github.com/uiwjs/react-codemirror) | `4.25.1` | `4.25.2` |
| [@uiw/react-codemirror](https://github.com/uiwjs/react-codemirror) | `4.25.1` | `4.25.2` |
| [immer](https://github.com/immerjs/immer) | `10.1.1` | `10.1.3` |
| [react-day-picker](https://github.com/gpbl/react-day-picker) | `9.9.0` | `9.11.0` |
| [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest) | `30.1.2` | `30.2.0` |
| [jsdom-testing-mocks](https://github.com/trurl-master/jsdom-testing-mocks) | `1.15.2` | `1.16.0` |
| [msw](https://github.com/mswjs/msw) | `2.10.1` | `2.11.3` |
| [playwright](https://github.com/microsoft/playwright) | `1.55.0` | `1.55.1` |
| [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) | `7.1.5` | `7.1.7` |
| [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) | `7.28.3` | `7.28.4` |
| [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) | `9.34.0` | `9.36.0` |
| [@swc/plugin-styled-components](https://github.com/swc-project/plugins/tree/HEAD/packages/styled-components) | `9.0.3` | `9.1.0` |
| [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react-swc) | `4.0.1` | `4.1.0` |
| [eslint](https://github.com/eslint/eslint) | `9.34.0` | `9.36.0` |
| [eslint-plugin-testing-library](https://github.com/testing-library/eslint-plugin-testing-library) | `7.4.0` | `7.11.0` |
| [globals](https://github.com/sindresorhus/globals) | `16.3.0` | `16.4.0` |
| [jest-environment-jsdom](https://github.com/jestjs/jest/tree/HEAD/packages/jest-environment-jsdom) | `30.1.2` | `30.2.0` |
| [@emotion/is-prop-valid](https://github.com/emotion-js/emotion) | `1.3.1` | `1.4.0` |
| [@types/styled-system](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/styled-system) | `5.1.23` | `5.1.24` |
| [ace-builds](https://github.com/ajaxorg/ace-builds) | `1.43.2` | `1.43.3` |
| [@types/semver](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/semver) | `7.7.0` | `7.7.1` |
| [@opentelemetry/exporter-trace-otlp-http](https://github.com/open-telemetry/opentelemetry-js) | `0.57.2` | `0.205.0` |
| [@opentelemetry/instrumentation](https://github.com/open-telemetry/opentelemetry-js) | `0.57.2` | `0.205.0` |
| [@opentelemetry/instrumentation-document-load](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/HEAD/packages/instrumentation-document-load) | `0.45.0` | `0.51.2` |
| [@opentelemetry/instrumentation-fetch](https://github.com/open-telemetry/opentelemetry-js) | `0.57.2` | `0.205.0` |
| [@opentelemetry/instrumentation-user-interaction](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/HEAD/packages/instrumentation-user-interaction) | `0.45.0` | `0.50.2` |
| [@opentelemetry/instrumentation-xml-http-request](https://github.com/open-telemetry/opentelemetry-js) | `0.57.2` | `0.205.0` |
| [@opentelemetry/semantic-conventions](https://github.com/open-telemetry/opentelemetry-js) | `1.32.0` | `1.37.0` |
| [strip-ansi](https://github.com/chalk/strip-ansi) | `7.1.0` | `7.1.2` |
| [electron-vite](https://github.com/alex8088/electron-vite) | `4.0.0` | `4.0.1` |
| [zod](https://github.com/colinhacks/zod) | `4.1.5` | `4.1.11` |


Updates `@codemirror/autocomplete` from 6.18.6 to 6.19.0
- [Changelog](https://github.com/codemirror/autocomplete/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codemirror/autocomplete/compare/6.18.6...6.19.0)

Updates `@codemirror/lang-sql` from 6.9.1 to 6.10.0
- [Changelog](https://github.com/codemirror/lang-sql/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codemirror/lang-sql/compare/6.9.1...6.10.0)

Updates `@codemirror/view` from 6.38.1 to 6.38.4
- [Changelog](https://github.com/codemirror/view/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codemirror/view/compare/6.38.1...6.38.4)

Updates `@grpc/grpc-js` from 1.13.4 to 1.14.0
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/[email protected]...@grpc/[email protected])

Updates `@tanstack/react-query` from 5.85.6 to 5.90.2
- [Release notes](https://github.com/TanStack/query/releases)
- [Commits](https://github.com/TanStack/query/commits/v5.90.2/packages/react-query)

Updates `@uiw/codemirror-themes` from 4.25.1 to 4.25.2
- [Release notes](https://github.com/uiwjs/react-codemirror/releases)
- [Commits](https://github.com/uiwjs/react-codemirror/compare/v4.25.1...v4.25.2)

Updates `@uiw/react-codemirror` from 4.25.1 to 4.25.2
- [Release notes](https://github.com/uiwjs/react-codemirror/releases)
- [Commits](https://github.com/uiwjs/react-codemirror/compare/v4.25.1...v4.25.2)

Updates `immer` from 10.1.1 to 10.1.3
- [Release notes](https://github.com/immerjs/immer/releases)
- [Commits](https://github.com/immerjs/immer/compare/v10.1.1...v10.1.3)

Updates `react-day-picker` from 9.9.0 to 9.11.0
- [Release notes](https://github.com/gpbl/react-day-picker/releases)
- [Changelog](https://github.com/gpbl/react-day-picker/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gpbl/react-day-picker/compare/v9.9.0...v9.11.0)

Updates `jest` from 30.1.2 to 30.2.0
- [Release notes](https://github.com/jestjs/jest/releases)
- [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jestjs/jest/commits/v30.2.0/packages/jest)

Updates `jsdom-testing-mocks` from 1.15.2 to 1.16.0
- [Release notes](https://github.com/trurl-master/jsdom-testing-mocks/releases)
- [Commits](https://github.com/trurl-master/jsdom-testing-mocks/compare/v1.15.2...v1.16.0)

Updates `msw` from 2.10.1 to 2.11.3
- [Release notes](https://github.com/mswjs/msw/releases)
- [Changelog](https://github.com/mswjs/msw/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mswjs/msw/compare/v2.10.1...v2.11.3)

Updates `playwright` from 1.55.0 to 1.55.1
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.55.0...v1.55.1)

Updates `vite` from 7.1.5 to 7.1.7
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.1.7/packages/vite)

Updates `@babel/core` from 7.28.3 to 7.28.4
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.28.4/packages/babel-core)

Updates `@eslint/js` from 9.34.0 to 9.36.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/commits/v9.36.0/packages/js)

Updates `@swc/plugin-styled-components` from 9.0.3 to 9.1.0
- [Changelog](https://github.com/swc-project/plugins/blob/main/packages/styled-components/CHANGELOG.md)
- [Commits](https://github.com/swc-project/plugins/commits/HEAD/packages/styled-components)

Updates `@vitejs/plugin-react-swc` from 4.0.1 to 4.1.0
- [Release notes](https://github.com/vitejs/vite-plugin-react/releases)
- [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite-plugin-react/commits/v4.1.0/packages/plugin-react-swc)

Updates `eslint` from 9.34.0 to 9.36.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v9.34.0...v9.36.0)

Updates `eslint-plugin-testing-library` from 7.4.0 to 7.11.0
- [Release notes](https://github.com/testing-library/eslint-plugin-testing-library/releases)
- [Changelog](https://github.com/testing-library/eslint-plugin-testing-library/blob/main/.releaserc.json)
- [Commits](https://github.com/testing-library/eslint-plugin-testing-library/compare/v7.4.0...v7.11.0)

Updates `globals` from 16.3.0 to 16.4.0
- [Release notes](https://github.com/sindresorhus/globals/releases)
- [Commits](https://github.com/sindresorhus/globals/compare/v16.3.0...v16.4.0)

Updates `jest-environment-jsdom` from 30.1.2 to 30.2.0
- [Release notes](https://github.com/jestjs/jest/releases)
- [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jestjs/jest/commits/v30.2.0/packages/jest-environment-jsdom)

Updates `@emotion/is-prop-valid` from 1.3.1 to 1.4.0
- [Release notes](https://github.com/emotion-js/emotion/releases)
- [Changelog](https://github.com/emotion-js/emotion/blob/main/CHANGELOG.md)
- [Commits](https://github.com/emotion-js/emotion/compare/@emotion/[email protected]...@emotion/[email protected])

Updates `@types/styled-system` from 5.1.23 to 5.1.24
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/styled-system)

Updates `ace-builds` from 1.43.2 to 1.43.3
- [Release notes](https://github.com/ajaxorg/ace-builds/releases)
- [Changelog](https://github.com/ajaxorg/ace-builds/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ajaxorg/ace-builds/compare/v1.43.2...v1.43.3)

Updates `@types/semver` from 7.7.0 to 7.7.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/semver)

Updates `@opentelemetry/exporter-trace-otlp-http` from 0.57.2 to 0.205.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/experimental/v0.57.2...experimental/v0.205.0)

Updates `@opentelemetry/instrumentation` from 0.57.2 to 0.205.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/experimental/v0.57.2...experimental/v0.205.0)

Updates `@opentelemetry/instrumentation-document-load` from 0.45.0 to 0.51.2
- [Release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/packages/instrumentation-document-load/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js-contrib/commits/instrumentation-mysql-v0.51.2/packages/instrumentation-document-load)

Updates `@opentelemetry/instrumentation-fetch` from 0.57.2 to 0.205.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/experimental/v0.57.2...experimental/v0.205.0)

Updates `@opentelemetry/instrumentation-user-interaction` from 0.45.0 to 0.50.2
- [Release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/packages/instrumentation-user-interaction/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js-contrib/commits/instrumentation-koa-v0.50.2/packages/instrumentation-user-interaction)

Updates `@opentelemetry/instrumentation-xml-http-request` from 0.57.2 to 0.205.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/experimental/v0.57.2...experimental/v0.205.0)

Updates `@opentelemetry/semantic-conventions` from 1.32.0 to 1.37.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/semconv/v1.32.0...semconv/v1.37.0)

Updates `strip-ansi` from 7.1.0 to 7.1.2
- [Release notes](https://github.com/chalk/strip-ansi/releases)
- [Commits](https://github.com/chalk/strip-ansi/compare/v7.1.0...v7.1.2)

Updates `electron-vite` from 4.0.0 to 4.0.1
- [Release notes](https://github.com/alex8088/electron-vite/releases)
- [Changelog](https://github.com/alex8088/electron-vite/blob/master/CHANGELOG.md)
- [Commits](https://github.com/alex8088/electron-vite/compare/v4.0.0...v4.0.1)

Updates `zod` from 4.1.5 to 4.1.11
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Commits](https://github.com/colinhacks/zod/compare/v4.1.5...v4.1.11)

---
updated-dependencies:
- dependency-name: "@codemirror/autocomplete"
  dependency-version: 6.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: "@codemirror/lang-sql"
  dependency-version: 6.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: "@codemirror/view"
  dependency-version: 6.38.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: ui
- dependency-name: "@grpc/grpc-js"
  dependency-version: 1.14.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: "@tanstack/react-query"
  dependency-version: 5.90.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: "@uiw/codemirror-themes"
  dependency-version: 4.25.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: ui
- dependency-name: "@uiw/react-codemirror"
  dependency-version: 4.25.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: ui
- dependency-name: immer
  dependency-version: 10.1.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: ui
- dependency-name: react-day-picker
  dependency-version: 9.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: jest
  dependency-version: 30.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: jsdom-testing-mocks
  dependency-version: 1.16.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: msw
  dependency-version: 2.11.3
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: playwright
  dependency-version: 1.55.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: ui
- dependency-name: vite
  dependency-version: 7.1.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: ui
- dependency-name: "@babel/core"
  dependency-version: 7.28.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: ui
- dependency-name: "@eslint/js"
  dependency-version: 9.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: "@swc/plugin-styled-components"
  dependency-version: 9.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: "@vitejs/plugin-react-swc"
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: eslint
  dependency-version: 9.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: eslint-plugin-testing-library
  dependency-version: 7.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: globals
  dependency-version: 16.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: jest-environment-jsdom
  dependency-version: 30.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: "@emotion/is-prop-valid"
  dependency-version: 1.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: "@types/styled-system"
  dependency-version: 5.1.24
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: ui
- dependency-name: ace-builds
  dependency-version: 1.43.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: ui
- dependency-name: "@types/semver"
  dependency-version: 7.7.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: ui
- dependency-name: "@opentelemetry/exporter-trace-otlp-http"
  dependency-version: 0.205.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: "@opentelemetry/instrumentation"
  dependency-version: 0.205.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: "@opentelemetry/instrumentation-document-load"
  dependency-version: 0.51.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: "@opentelemetry/instrumentation-fetch"
  dependency-version: 0.205.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: "@opentelemetry/instrumentation-user-interaction"
  dependency-version: 0.50.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: "@opentelemetry/instrumentation-xml-http-request"
  dependency-version: 0.205.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: "@opentelemetry/semantic-conventions"
  dependency-version: 1.37.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ui
- dependency-name: strip-ansi
  dependency-version: 7.1.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: ui
- dependency-name: electron-vite
  dependency-version: 4.0.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: ui
- dependency-name: zod
  dependency-version: 4.1.11
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: ui
...

Signed-off-by: dependabot[bot] <[email protected]>

* Revert opentelemetry updates

* Add until-async to Jest's ES modules

* Remove generics from msw HttpResponseResolver

* Dedupe packages

* Refactor test that calls click() directly on element returned by screen.getBy*

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rafał Cieślak <[email protected]>
2025-10-02 16:19:26 +00:00

50 lines
1.4 KiB
JavaScript

const config = require('@gravitational/build/jest/config');
process.env.TZ = 'UTC';
const esModules = [
'strip-ansi',
'ansi-regex',
'd3-color',
'd3-scale',
'd3-interpolate',
'd3-time-format',
'd3-array',
'd3-format',
'd3-time',
'd3-shape',
'd3-path',
'internmap',
'@nivo/bar',
'react-error-boundary',
'until-async',
].join('|');
/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
...config,
globals: {
electron: {},
},
collectCoverageFrom: [
// comment out until shared directory is finished testing
// '**/packages/design/src/**/*.jsx',
'**/packages/shared/components/**/*.jsx',
],
// Copied from https://jestjs.io/docs/configuration#transformignorepatterns-arraystring
// Because in pnpm packages are symlinked to node_modules/.pnpm,
// we need to transform packages in that directory.
// We use a relative pattern to match the second 'node_modules/' in
// 'node_modules/.pnpm/@[email protected]/node_modules/@scope/pkg-b/'.
transformIgnorePatterns: [`node_modules/(?!.pnpm|${esModules})`],
coverageReporters: ['text-summary', 'lcov'],
testPathIgnorePatterns: ['e2e'],
testEnvironmentOptions: {
customExportConditions: [''],
},
setupFilesAfterEnv: [
'<rootDir>/web/packages/build/jest/setupTests.ts',
'<rootDir>/web/packages/build/jest/customMatchers.ts',
],
};