Added initial Mocha testing setup
All checks were successful
continuous-integration/drone the build was successful

This commit is contained in:
Jef Roosens 2021-05-18 18:29:20 +02:00
parent d381b636c8
commit d557d45862
Signed by: Jef Roosens
GPG key ID: 955C0660072F691F
7 changed files with 474 additions and 34 deletions

View file

@ -62,7 +62,7 @@ run: venv
## node_modules
### Install dependencies
$(WEB_DIR)/node_modules: $(WEB_DIR)/package.json $(WEB_DIR)/yarn.lock
@ cd web && yarn install
@ yarn --cwd '$(WEB_DIR)' install
# Convenient alias
node_modules: | $(WEB_DIR)/node_modules
@ -71,19 +71,19 @@ node_modules: | $(WEB_DIR)/node_modules
## Formatting & linting
flint: node_modules
@ cd web && yarn run lint
@ yarn --cwd '$(WEB_DIR)' run lint
.PHONY: flint
fformat: node_modules
@ cd web && yarn run format
@ yarn --cwd '$(WEB_DIR)' run format
.PHONY: fformat
## Testing
# TODO add testing command
ftest: node_modules
@ yarn --cwd '$(WEB_DIR)' test
## Building
fbuild: node_modules
@ cd web && yarn build
@ yarn --cwd '$(WEB_DIR)' build
.PHONY: fbuild