Allow the browser-test port to be set with TEST_PORT
Merged
LU
19h ago+8+8+0123456789-3-3-0123456789
Lets several checkouts run npm test at the same time. The default stays 8897.
š¤ Generated with Claude Code
Summary by cubic
Lets several checkouts run npm test at the same time by setting the browser-test port with the TEST_PORT environment variable; the default stays 8897. The suite now also fails fast instead of testing another server's files when its port is already taken. The contributing docs mention the new option.
Summary by CodeRabbit
-
Documentation
- Updated browser-test documentation to explain that the test server port can be configured with
TEST_PORT. - Clarified that the default test server port remains
8897.
- Updated browser-test documentation to explain that the test server port can be configured with
-
Tests
- Browser tests now consistently use the configured
TEST_PORTvalue when starting the test server and connecting to it. - Existing support for configuring the Python executable remains unchanged.
- Browser tests now consistently use the configured