Commit Graph

6 Commits

Author SHA1 Message Date
Dennis Oelkers
f32b0324bc Fixing Quick Jump for API Browser. (#24790)
* Fixing Quick Jump for API Browser.

* Adding test.

* Restoring exports, but making them explicit.

* Adding missing exports.

* Using cleaner type.

* Exporting `cleanup` as well.
2026-01-22 15:35:12 +01:00
Dennis Oelkers
4c16c72af7 Removing residues from enzyme. (#22809)
* Removing `enzyme`.

* Migrating `react-hooks` test utilities.

* Removing unneeded version pins, adding lockfile.

* Fixing linter hints.
2025-06-11 12:02:01 +02:00
github-actions[bot]
e913e0d5f3 Running lint --fix & prettier (#21515)
Co-authored-by: Dr. Lint-a-lot <garybot2@graylog.com>
2025-02-13 08:15:43 +01:00
dependabot[bot]
e752111683 Bump @testing-library/jest-dom from 5.17.0 to 6.1.3 in /graylog2-web-interface/packages/jest-preset-graylog (#16389)
* Bump @testing-library/jest-dom

Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.17.0 to 6.1.3.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.17.0...v6.1.3)

---
updated-dependencies:
- dependency-name: "@testing-library/jest-dom"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Adding `@types/jest` package.

* Changing module name for types/matchers import.

* Jest `.setSystemTime` now has proper type.

* Specify mandatory argument to matcher.

* Improving test by using real `queryClient` instead of mock.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dennis Oelkers <dennis@graylog.com>
2023-09-19 09:01:05 +02:00
dependabot[bot]
5d21a36ea7 Bump @types/react-beautiful-dnd from 13.1.2 to 13.1.4 in /graylog2-web-interface (#14984)
* Bump @types/react-beautiful-dnd in /graylog2-web-interface

Bumps [@types/react-beautiful-dnd](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-beautiful-dnd) from 13.1.2 to 13.1.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-beautiful-dnd)

---
updated-dependencies:
- dependency-name: "@types/react-beautiful-dnd"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fixing up typing fallout.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dennis Oelkers <dennis@graylog.com>
2023-03-27 16:06:12 +02:00
Linus Pahl
170bebe571 Create reusable query client provider for tests. (#14601)
* Create reusable query client provider for tests.

* Reexport renderHook from wrappedTestingLibrary.

* Update imports

* Update import of act.

* Ensure to import `act` from the same place like `renderHook`.

* Fixing linter hint

* Remove @ts-ignore

* Create seperate directory for `wrappedTestingLibray`.

* Move render hook helper to `wrappedTestingLibrary/hooks`.

* Fixing import

* Fixing linter hints
2023-02-23 11:10:03 +01:00