Skip to content

Latest commit

 

History

History
66 lines (46 loc) · 875 Bytes

CONTRIBUTING.md

File metadata and controls

66 lines (46 loc) · 875 Bytes

Contributing

Setup

python3 -m pip install pre-commit
pre-commit install

Tests

Note

End to end tests are located at end2end/

End to end tests

cargo install wasm-pack

You need to install a browser and run:

cd end2end
wasm-pack test --{browser} --headless

Where {browser} is one of firefox, chrome, or safari. For example:

cd end2end
wasm-pack test --firefox --headless

If you want to run a test suite pass it in the --test flag. For example, to run the csr_complete test suite run:

cd end2end
wasm-pack test --firefox --headless --test csr_complete

Unit tests

cargo test -p leptos-fluent -p leptos-fluent-macros

Documentation

Reference

cargo doc --open --no-deps

Book

cargo install mdbook
cd book
mdbook serve --open