Skip to content

Commit 4586caf

Browse files
authored
chore: mv test package.json to tests (#43)
* chore: mv test package.json to tests * chore: move .env into tests
1 parent 1129f3d commit 4586caf

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed
File renamed without changes.

tests/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Must have one environment variable set:
88

99
* `STEPZEN_ENDPOINT` - StepZen endpoint all the tests will be deployed to (one at a time). For example:
1010
```
11-
export STEPZEN_ENDPOINT=https://YOUR_ACCOUNT.stepzen.net/test/snippets/__graphql`
11+
export STEPZEN_ENDPOINT=https://YOUR_ACCOUNT.stepzen.net/test/snippets/graphql
1212
```
1313

14-
You can also set this environment variable in a `.env` file in the root of the snippets repo. By copying the `.env.example` file.
14+
You can also set this environment variable in a `.env` file in the `tests` folder. By copying the `.env.example` file.
1515

1616
Must be logged into your StepZen account (matching `YOUR_ACCOUNT` in `STEPZEN_ENDPOINT`)
1717
```
@@ -21,6 +21,7 @@ stepzen login
2121
Execute at the root of the snippets repo.
2222

2323
```
24+
cd tests
2425
npm ci
2526
npm test
2627
```
File renamed without changes.

package.json renamed to tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"type": "commonjs",
55
"scripts": {
6-
"test": "mocha **/tests/*Test.js"
6+
"test": "mocha ../**/tests/*Test.js"
77
},
88
"dependencies": {
99
"chai": "^4.3.6",

0 commit comments

Comments
 (0)