mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 02:21:44 +02:00
🐛 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:
parent
773debafda
commit
0870910dcc
8 changed files with 19 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue