Fix web test setup and test-file selection Add shared and changeViewIntegration to the mocked Gerrit Styles API to satisfy the current TypeScript interface. Remove the unsupported --dir argument, which caused production JavaScript files to be selected as tests. Keep the explicit *_test.js pattern. Change-Id: I2826d60fa7362f9d65e3c005f7939b00fd7f5f27
diff --git a/web/test/test-setup.ts b/web/test/test-setup.ts index b335daa..ebe6a17 100644 --- a/web/test/test-setup.ts +++ b/web/test/test-setup.ts
@@ -32,9 +32,11 @@ form: css``, material: css``, menuPage: css``, + shared: css``, spinner: css``, subPage: css``, table: css``, modal: css``, + changeViewIntegration: css``, }, };
diff --git a/web/web_test_runner.sh b/web/web_test_runner.sh index 09cdb9c..26cce76 100755 --- a/web/web_test_runner.sh +++ b/web/web_test_runner.sh
@@ -2,6 +2,5 @@ set -euo pipefail ./$1 --config $2 \ - --dir 'plugins/checks/web/_bazel_ts_out_tests' \ --test-files 'plugins/checks/web/_bazel_ts_out_tests/*_test.js' \ --ts-config="plugins/checks/web/tsconfig.json"