Skip to content

Commit

Permalink
Convert tag cloud tests to jest (elastic#70066) (elastic#70850)
Browse files Browse the repository at this point in the history
* Convert tag cloud tests to jest

* Add mocks to test_utils and remove tests from legacy

* Revert changes made by accident

* Update tag_cloud_visualization.test.js

* Update tag_cloud.test.js

* Update jsdom_svg_mocks.ts

* Add restoring previous value to window.SVGElement.prototype.transform

* Get rid of some deep imports

* Reimport jsdom_svg_mocks functions from test_utils/public

* Get rid of ExprVis by inlining some of its params to vis object

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
  • Loading branch information
3 people authored Jul 7, 2020
1 parent 8aa3c36 commit b6aaf8a
Show file tree
Hide file tree
Showing 14 changed files with 395 additions and 331 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,10 @@
"is-path-inside": "^2.1.0",
"istanbul-instrumenter-loader": "3.0.1",
"jest": "^25.5.4",
"jest-environment-jsdom-thirteen": "^1.0.1",
"jest-canvas-mock": "^2.2.0",
"jest-circus": "^25.5.4",
"jest-cli": "^25.5.4",
"jest-environment-jsdom-thirteen": "^1.0.1",
"jest-raw-loader": "^1.0.1",
"jimp": "^0.9.6",
"json5": "^1.0.1",
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b6aaf8a

Please sign in to comment.