Skip to content

Commit

Permalink
Fix issue with repeat npm test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
djblue committed Nov 30, 2024
1 parent 3e76e6d commit 51c8857
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/portal/runtime/npm_test.cljc
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
(ns portal.runtime.npm-test
(:require [clojure.test :refer [deftest are]]
[portal.runtime.shell :refer [sh]]
[portal.runtime.npm :refer [node-resolve]]))
(:require [clojure.test :refer [are deftest]]
[portal.runtime.fs :as fs]
[portal.runtime.npm :refer [node-resolve]]
[portal.runtime.shell :refer [sh]]))

(deftest valid-modules
(sh "npm" "install" "react@^17.0.2")
(when-not (fs/exists "node_modules")
(sh "npm" "install" "react@^17.0.2"))
(are [module]
(some? (node-resolve module))
"react/jsx-runtime.js"
Expand Down

0 comments on commit 51c8857

Please sign in to comment.