mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
Add specific esm testing environment for tokens
This commit is contained in:
parent
ba6a6059c1
commit
10033ead91
3 changed files with 7 additions and 2 deletions
|
@ -26,6 +26,10 @@
|
|||
"test:run": "node target/tests.cjs",
|
||||
"test:watch": "clojure -M:dev:shadow-cljs watch test",
|
||||
"test": "yarn run test:compile && yarn run test:run",
|
||||
"token-test:compile": "clojure -M:dev:shadow-cljs compile test-esm --config-merge '{:autorun false}'",
|
||||
"token-test:run": "bun target/tests-esm.cjs",
|
||||
"token-test:watch": "clojure -M:dev:shadow-cljs watch test-esm",
|
||||
"token-test": "yarn run token-test:compile && yarn run token-test:run",
|
||||
"translations:validate": "node ./scripts/validate-translations.js",
|
||||
"translations:find-unused": "node ./scripts/find-unused-translations.js",
|
||||
"compile": "node ./scripts/compile.js",
|
||||
|
|
|
@ -159,7 +159,8 @@
|
|||
:warnings {:fn-deprecated false}}}
|
||||
|
||||
:test-esm
|
||||
{:target :esm-files
|
||||
{:target :node-test
|
||||
:output-to "target/tests-esm.cjs"
|
||||
:output-dir "target/test-esm"
|
||||
:ns-regexp "^token-tests.*-test$"
|
||||
:autorun true
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
;;
|
||||
;; Copyright (c) KALEIDOS INC
|
||||
(ns frontend-tests.tokens.style-dictionary-test
|
||||
(ns token-tests.style-dictionary-test
|
||||
(:require
|
||||
[app.main.ui.workspace.tokens.style-dictionary :as wtsd]
|
||||
[cljs.test :as t :include-macros true]))
|
||||
|
|
Loading…
Add table
Reference in a new issue