Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Frizi committed Jan 14, 2025
1 parent a971e22 commit c6073b6
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 56 deletions.
2 changes: 1 addition & 1 deletion app/gui/src/dashboard/hooks/gtagHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import * as load from 'enso-common/src/load'
import * as React from 'react'

const GOOGLE_ANALYTICS_TAG = $config.GOOGLE_ANALYTICS_TAG
const GOOGLE_ANALYTICS_TAG = typeof $config !== 'undefined' && $config.GOOGLE_ANALYTICS_TAG

if (GOOGLE_ANALYTICS_TAG != null) {
void load.loadScript(`https://www.googletagmanager.com/gtag/js?id=${GOOGLE_ANALYTICS_TAG}`)
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
},
"dependencies": {
"@bazel/bazelisk": "^1.22.1",
"typescript": "^5.7.2"
"typescript": "^5.7.2",
"tslib": "^2.8.1"
},
"name": "root",
"scripts": {
Expand Down Expand Up @@ -55,6 +56,7 @@
"sharp"
],
"overrides": {
"tslib": "$tslib",
"jsdom": "^24.1.0",
"@types/react": "^18.3.1",
"ws": "^8.18.0"
Expand Down
Loading

0 comments on commit c6073b6

Please sign in to comment.