From d436fd769e5ea763e3df0bdec99c6f232a1dd858 Mon Sep 17 00:00:00 2001
From: "Steven R. Loomis"
Date: Sat, 30 Mar 2024 09:06:26 -0500
Subject: [PATCH] CLDR-17481 re-enable directly loading Test.html (#3584)
---
tools/cldr-apps/js/package.json | 1 +
tools/cldr-apps/js/test/Test.html | 19 ++++++++-----------
tools/cldr-apps/js/test/run.sh | 9 ---------
3 files changed, 9 insertions(+), 20 deletions(-)
delete mode 100644 tools/cldr-apps/js/test/run.sh
diff --git a/tools/cldr-apps/js/package.json b/tools/cldr-apps/js/package.json
index e6869cf6cde..878115d7959 100644
--- a/tools/cldr-apps/js/package.json
+++ b/tools/cldr-apps/js/package.json
@@ -5,6 +5,7 @@
"main": "index.js",
"scripts": {
"build-test": "webpack --config webpack-test.config.js",
+ "watch-test": "npm run build-test -- --watch",
"test": "npm run nonbrowser-test && npm run browser-test",
"nonbrowser-test": "mocha --reporter spec test/nonbrowser/test-*.mjs",
"browser-test": "npm run build-test && mocha-headless-chrome -f test/Test.html",
diff --git a/tools/cldr-apps/js/test/Test.html b/tools/cldr-apps/js/test/Test.html
index 6e0717392ac..d98bcbcb2c6 100644
--- a/tools/cldr-apps/js/test/Test.html
+++ b/tools/cldr-apps/js/test/Test.html
@@ -16,17 +16,14 @@
"
>
CLDR SurveyTool JavaScript Tests
-
-
- Important: run with run.sh; open the browser console to check
+
+ - in the 'js' directory, run
npm i
to install
+ - To rebuild, run
npm run build-test
+ - If you want to continuously compile, keep
npm run watch-test
(control-C to cancel)
+ - open the browser console to check
for errors/warnings that are otherwise invisible!
-
+
+
References:
-
@@ -43,7 +40,7 @@
CLDR SurveyTool JavaScript Tests
-
+