Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vitPinchuk committed Feb 2, 2024
1 parent 15d106b commit 6d8e618
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jest-setup.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
// Jest setup provided by Grafana scaffolding
import './.config/jest-setup';

import { TextDecoder, TextEncoder } from 'util';

/**
* Assign Text Decoder and Encoder which are required in @grafana/ui
*/
Object.assign(global, { TextDecoder, TextEncoder });
14 changes: 14 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "5.3.3",
"util": "^0.12.5",
"webpack": "^5.90.1",
"webpack-cli": "^5.1.4",
"webpack-livereload-plugin": "^3.0.2"
Expand Down

0 comments on commit 6d8e618

Please sign in to comment.