> npm install -g pnpm
> pnpm i
> pnpm dlx husky install
> chmod +x .husky/post-merge && chmod +x .husky/pre-commit && cp .husky/post-merge .git/hooks
> pnpm start
-
Clone your personal fork and define remote source
> git clone git@github.com:<username>/sveltestrap.git > cd sveltestrap > git remote add upstream git@github.com:sveltestrap/sveltestrap.git
-
Install PNPM
> npm install -g pnpm
-
Install
husky
hooks> pnpm dlx husky install
-
Make sure husky scripts are executable and copied to .git/hooks
> chmod +x .husky/post-merge && chmod +x .husky/pre-commit && cp .husky/post-merge .git/hooks
-
Install dependencies
> pnpm i
-
Start the local development server to launch the docs
> pnpm start
-
Happy coding! You're changes will be automatically rebuilt and reflected immediately on the docs.
Running either of these commands will execute all unit tests.
Command | Notes |
---|---|
pnpm test |
Single run with no coverage report |
pnpm test:watch |
Watches for changes |
pnpm test:coverage |
Executes tests and launches a coverage report |
pnpm test:integration |
Executes integration tests |
pnpm test:integration:report |
Executes integration tests and launchesreport |
Run all tests
> pnpm test
Run a specific test
> pnpm test [path-to-test-file]
Run all tests and generate a code coverage report
> pnpm test:coverage
Run all tests
> pnpm test:integration
Run all tests and generate a report
> pnpm test:integration:report