|
377 | 377 | (build/build (build/inputs (io/file inputs "data_readers_test")) opts cenv)
|
378 | 378 | (is (contains? (-> @cenv ::ana/data-readers) 'test/custom-identity))))
|
379 | 379 |
|
380 |
| -(deftest test-node-modules-cljs-2246 |
381 |
| - (test/delete-node-modules) |
382 |
| - (spit (io/file "package.json") (json/json-str {:dependencies {:left-pad "1.1.3"} |
383 |
| - :devDependencies {:module-deps "*" |
384 |
| - :resolve "*" |
385 |
| - :browser-resolve "*"}})) |
386 |
| - (sh/sh "yarn" "install") |
387 |
| - (let [ws (atom []) |
388 |
| - out (.getPath (io/file (test/tmp-dir) "node-modules-opt-test-out")) |
389 |
| - {:keys [inputs opts]} {:inputs (str (io/file "src" "test" "cljs_build")) |
390 |
| - :opts {:main 'node-modules-opt-test.core |
391 |
| - :output-dir out |
392 |
| - :optimizations :none |
393 |
| - :closure-warnings {:check-types :off}}} |
394 |
| - cenv (env/default-compiler-env opts)] |
395 |
| - (test/delete-out-files out) |
396 |
| - (ana/with-warning-handlers [(collecting-warning-handler ws)] |
397 |
| - (build/build (build/inputs (io/file inputs "node_modules_opt_test/core.cljs")) opts cenv)) |
398 |
| - (is (.exists (io/file out "node_modules/left-pad/index.js"))) |
399 |
| - (is (contains? (:js-module-index @cenv) "left-pad")) |
400 |
| - (is (empty? @ws))) |
401 |
| - (.delete (io/file "package.json")) |
402 |
| - (.delete (io/file "yarn.lock")) |
403 |
| - (test/delete-node-modules)) |
| 380 | +;(deftest test-node-modules-cljs-2246 |
| 381 | +; (test/delete-node-modules) |
| 382 | +; (spit (io/file "package.json") (json/json-str {:dependencies {:left-pad "1.1.3"} |
| 383 | +; :devDependencies {:module-deps "*" |
| 384 | +; :resolve "*" |
| 385 | +; :browser-resolve "*"}})) |
| 386 | +; (sh/sh "yarn" "install") |
| 387 | +; (let [ws (atom []) |
| 388 | +; out (.getPath (io/file (test/tmp-dir) "node-modules-opt-test-out")) |
| 389 | +; {:keys [inputs opts]} {:inputs (str (io/file "src" "test" "cljs_build")) |
| 390 | +; :opts {:main 'node-modules-opt-test.core |
| 391 | +; :output-dir out |
| 392 | +; :optimizations :none |
| 393 | +; :closure-warnings {:check-types :off}}} |
| 394 | +; cenv (env/default-compiler-env opts)] |
| 395 | +; (test/delete-out-files out) |
| 396 | +; (ana/with-warning-handlers [(collecting-warning-handler ws)] |
| 397 | +; (build/build (build/inputs (io/file inputs "node_modules_opt_test/core.cljs")) opts cenv)) |
| 398 | +; (is (.exists (io/file out "node_modules/left-pad/index.js"))) |
| 399 | +; (is (contains? (:js-module-index @cenv) "left-pad")) |
| 400 | +; (is (empty? @ws))) |
| 401 | +; (.delete (io/file "package.json")) |
| 402 | +; (.delete (io/file "yarn.lock")) |
| 403 | +; (test/delete-node-modules)) |
0 commit comments