A structure to follow when writing component tests to facilitate onboarding, readability and maintenance of tests.
This project uses devbox to manage its development environment.
Install devbox:
curl -fsSL https://get.jetpack.io/devbox | bashStart the devbox shell:
devbox shellRun a script in the devbox environment:
devbox run <script>Scripts are custom commands that can be run using this project's environment. This project has the following scripts:
The Shell Init Hook is a script that runs whenever the devbox environment is instantiated. It runs
on devbox shell and on devbox run.
test -z $DEVBOX_COREPACK_ENABLED || corepack enable --install-directory "/home/nixos/vue-meetup/component-testing-recipe/.devbox/virtenv/nodejs_20/corepack-bin/"
test -z $DEVBOX_COREPACK_ENABLED || export PATH="/home/nixos/vue-meetup/component-testing-recipe/.devbox/virtenv/nodejs_20/corepack-bin/:$PATH"pnpm install $@
pnpm test $@