Testing
How tests are organized and how to run them.
Test runner
ashlr uses Bun's built-in test runner. All tests live under __tests__/.
Run all tests
Run a specific test file
Run tests matching a pattern
Test organization
Writing a new test
Tests that need the filesystem should use tmp directories created with mkdtemp and cleaned up in afterAll.
CI
Tests run on every push via GitHub Actions (.github/workflows/test.yml). The matrix tests on Node 20 and Bun 1.x on ubuntu-latest.
Type checking
This runs tsc --noEmit on the plugin root tsconfig.json. Always pass typecheck before opening a PR.