🐛 Fix nodejs incompatibility with common tests prepend script (#5730)

* 🐛 Fix nodejs incompatibility with common tests prepend script

* 📎 Fix linter issues

Related to the upcoming update of clj-kondo
This commit is contained in:
Andrey Antukh 2025-01-30 14:32:43 +01:00 committed by GitHub
parent 773debafda
commit 0870910dcc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 19 additions and 12 deletions

View file

@ -147,7 +147,7 @@
:modules
{:test {:init-fn frontend-tests.runner/init
:prepend-js "globalThis.navigator = {userAgent: \"\"}"}}}
:prepend-js ";if (typeof globalThis.navigator?.userAgent === 'undefined') { globalThis.navigator = {userAgent: ''}; };"}}}
:lib-penpot
{:target :esm

View file

@ -72,7 +72,7 @@
([context type id media]
(let [file-id (:file-id context)
path (case type
:manifest (str "manifest.json")
:manifest "manifest.json"
:page (str file-id "/" id ".svg")
:colors-list (str file-id "/colors.json")
:colors (let [ext (cm/mtype->extension (:mtype media))]