aboutsummaryrefslogtreecommitdiff
path: root/packages/db/test/test-utils.js
diff options
context:
space:
mode:
authorGravatar Florian Lefebvre <contact@florian-lefebvre.dev> 2025-06-05 16:18:32 +0200
committerGravatar Florian Lefebvre <contact@florian-lefebvre.dev> 2025-06-05 16:18:32 +0200
commit61e779486fffd77eed4b95eec0ab5fcf106dd2d5 (patch)
tree85518de42eea4004e4c891676bce52836de06461 /packages/db/test/test-utils.js
parent0947a69192ad6820970902c7c951fb0cf31fcf4b (diff)
downloadastro-feat/remove-studio.tar.gz
astro-feat/remove-studio.tar.zst
astro-feat/remove-studio.zip
feat: remove studiofeat/remove-studio
Diffstat (limited to 'packages/db/test/test-utils.js')
-rw-r--r--packages/db/test/test-utils.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/db/test/test-utils.js b/packages/db/test/test-utils.js
index b608d75b8..b2a351a47 100644
--- a/packages/db/test/test-utils.js
+++ b/packages/db/test/test-utils.js
@@ -21,7 +21,7 @@ let portIncrementer = 8030;
*/
export async function setupRemoteDbServer(astroConfig) {
const port = portIncrementer++;
- process.env.ASTRO_STUDIO_REMOTE_DB_URL = `http://localhost:${port}`;
+ process.env.ASTRO_DB_REMOTE_DB_URL = `http://localhost:${port}`;
process.env.ASTRO_INTERNAL_TEST_REMOTE = true;
const server = createRemoteDbServer().listen(port);
@@ -50,7 +50,7 @@ export async function setupRemoteDbServer(astroConfig) {
return {
server,
async stop() {
- delete process.env.ASTRO_STUDIO_REMOTE_DB_URL;
+ delete process.env.ASTRO_DB_REMOTE_DB_URL;
delete process.env.ASTRO_INTERNAL_TEST_REMOTE;
return new Promise((resolve, reject) => {
server.close((err) => {
@@ -83,12 +83,12 @@ export async function initializeRemoteDb(astroConfig) {
}
/**
- * Clears the environment variables related to Astro DB and Astro Studio.
+ * Clears the environment variables related to Astro DB.
*/
export function clearEnvironment() {
const keys = Array.from(Object.keys(process.env));
for (const key of keys) {
- if (key.startsWith('ASTRO_DB_') || key.startsWith('ASTRO_STUDIO_')) {
+ if (key.startsWith('ASTRO_DB_')) {
delete process.env[key];
}
}