-
create .env file
- This repository include
.env.sample
file
$ cp .env.sample .env $ # customize your .env file
- This repository include
-
enable yarn wrapper shell
$ source .npm_scripts/yarn-with-dotenv
-
starting server
$ docker-compose up -d
or, If you want to launch nuxt server on host machine.
$ docker-compose up -d backend $ yarn && yarn dev
-
test
$ docker-compose run puppeteer sh -c 'yarn && yarn sb:build && yarn test'
or, If you want to run jest on host machine.
$ yarn && yarn sb:build && yarn test
NOTICE: visual tests are skipped when run test on host machine. Because occurs test result difference when use the puppeteer installed on each platform
This repository is manage expect files of snapshot testing by git lfs
, so you need to install git lfs.
Already installed git hooks by husky if you already clone this repository, In that case, please install the hooks manually by git lfs update --manual
after install git lfs