Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
enkoder committed Dec 3, 2023
1 parent 8e223bd commit dd92ebb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ pnpm start-app
pnpm start-tailwind
```

### Tests

You will not find many tests at the Beanstalk. But if you do want to run them locally, you can with.

```shell
pnpm -r test
```

### Environment Variables

Move the [.dev.vars.example](/api/.dev.vars.example) file to api/.dev.vars and edit any secrets to test certain features
Expand All @@ -85,7 +93,7 @@ mv api/.dev.vars.example api/.dev.vars
### Linting

This repo has some pre-commits installed to help ensure the repo stays looking fresh. To install and
setup pre-commit, run the following. If you are on Linux, you can install pre-commit w/ pip.
setup pre-commit, run the following. If you are on Linux, you can install pre-commit w/ pip

```shell
brew install pre-commit
Expand All @@ -101,3 +109,9 @@ pnpm -r lint
### IDE Configuration

-[ ] Setup VSCode config -[ ] Setup Webstorm config

### CI

[Github Actions](.github/workflows/tests.yaml) are set up for this repo. The CI job will install dependencies, run
lints,
and any tests configured in any of the pnpm workspaces. You will receive during development on PRs.
1 change: 1 addition & 0 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "src/index.js",
"scripts": {
"lint": "eslint --fix src",
"test": "jest",
"start": "wrangler dev --test-scheduled",
"build": "wrangler build"
},
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"packages/*"
],
"scripts": {
"lint": "pnpm --stream exec eslint",
"build": "pnpm --stream -r run build",
"start": "pnpm --stream -r run start",
"start-api": "pnpm --filter api run start",
Expand Down

0 comments on commit dd92ebb

Please sign in to comment.