Add beginning setup for tests

This commit is contained in:
2025-06-16 22:41:29 -07:00
parent 695ab184b2
commit 927d8a7f0c
5 changed files with 211 additions and 2 deletions

View File

@@ -8,6 +8,16 @@
Visit `localhost:8080` to view.
## Run a test
You need chrome and chromedriver installed. The Dockerfile builds an image that does that. Then run the test with that image.
`--network host` gives the container internet access. Necessary if tests make outside requests.
docker run --rm -it -v $PWD:/usr/src/app --network host btroops node google_test
TODO add firefox and geckodriver
## Rough way to save the SVG map generated by JavaScript client-side
const XMLS = new XMLSerializer();