You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will start a local server at [http://localhost:8000](http://localhost:8000) and automatically open it in your browser.
67
116
68
-
To use local benchmark data, set `environment: 'development'` in `site/config.js`.
117
+
The environment is automatically detected (localhost = development, otherwise = production).
118
+
To override, use the query parameter: `?env=development` or `?env=production`.
69
119
70
120
### Running Tests
71
121
72
-
End-to-end tests use Playwright:
122
+
End-to-end tests use Playwright and `balatrobench` tests:
73
123
74
124
```bash
75
-
# Run tests headless (default)
76
-
npm test
77
-
78
-
# Run tests with interactive UI
79
-
npm run test:ui
125
+
make test
126
+
```
80
127
81
-
# Run tests with browser visible
82
-
npm run test:headed
128
+
> [!NOTE]
129
+
> Although `playwright.config.js` includes webServer configuration, the server may not auto-start reliably. If tests fail to connect, manually start the server first:
83
130
84
-
# Run tests in debug mode
85
-
npm run test:debug
131
+
```bash
132
+
make serve # In a separate terminal
133
+
make test # Run tests
86
134
```
87
135
88
-
The test server is automatically started by Playwright (see `playwright.config.js`).
89
-
90
136
## 🚀 Related Projects
91
137
92
138
- [**BalatroBot**](https://github.com/coder/balatrobot): API for developing Balatro bots
0 commit comments