Skip to content

Commit

Permalink
add .env.test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuqi-Du committed Nov 28, 2023
1 parent 246ff1d commit f625e59
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion photography-site-demo.js/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ IS_ASTRA=
OPENAI_API_KEY=

#Fill the Local JSON API related details only when IS_ASTRA is set to 'false'
#Local JSON API URL for example: http://127.0.0.1:8181/v1/ecommerce_test where 'ecommerce_test' is the keyspace name
#Local JSON API URL for example: http://127.0.0.1:8181/v1/photography where 'photography' is the keyspace name
JSON_API_URL=
#Auth URL for example: http://127.0.0.1:8081/v1/auth
JSON_API_AUTH_URL=
Expand Down
7 changes: 7 additions & 0 deletions photography-site-demo.js/.env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#Local JSON API URL for example: http://127.0.0.1:8181/v1/photography where 'photography' is the keyspace name
JSON_API_URL=http://127.0.0.1:8181/v1/photography
#Auth URL for example: http://127.0.0.1:8081/v1/auth
JSON_API_AUTH_URL=http://127.0.0.1:8081/v1/auth
#Auth username and password
JSON_API_AUTH_USERNAME=cassandra
JSON_API_AUTH_PASSWORD=cassandra
1 change: 0 additions & 1 deletion photography-site-demo.js/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ typings/

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache
Expand Down
2 changes: 2 additions & 0 deletions photography-site-demo.js/tests/setup.test.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
'use strict';
require('dotenv').config({ path: `${__dirname}/../.env.test` });

const { before, after } = require('mocha');
const connect = require('../server/models/connect');
const mongoose = require('../server/models/mongoose');
Expand Down

0 comments on commit f625e59

Please sign in to comment.