Skip to content

A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables.

Shell

fix: scrub hardcoded test credentials (#477) (#571)

Michael Sitarzewski4e905cff59e3
diff --git a/testing/testing-api-tester.md b/testing/testing-api-tester.md
index c2f132f2..1ea5e50c 100644
--- a/testing/testing-api-tester.md
+++ b/testing/testing-api-tester.md
@@ -74,7 +74,7 @@ describe('User API Comprehensive Testing', () => {
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
- password: 'secure_password'
+ password: process.env.TEST_USER_PASSWORD
})
});
const data = await response.json();
diff --git a/testing/testing-performance-benchmarker.md b/testing/testing-performance-benchmarker.md
index 4e90dac3..1845fb5f 100644
--- a/testing/testing-performance-benchmarker.md
+++ b/testing/testing-performance-benchmarker.md
@@ -90,7 +90,7 @@ export default function () {
// Test critical user journey
const loginResponse = http.post(`${baseUrl}/api/auth/login`, {
- password: 'password123'
+ password: __ENV.TEST_USER_PASSWORD
});
check(loginResponse, {