Skip to content

Commit 97786b8

Browse files
danadajianclaude
andauthored
chore(repo): migrate from jest to bun test runner (#757)
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent e078415 commit 97786b8

129 files changed

Lines changed: 46673 additions & 39310 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ jobs:
4747
run: bun lint
4848

4949
- name: Run Unit Tests
50-
run: bun run test
50+
run: bun test
5151

5252
- name: Package
5353
run: bun package
5454

5555
- name: Compare the expected and actual dist/ directories
5656
run: |
5757
if [[ $(git status --porcelain) ]]; then
58-
echo "Detected uncommitted changes after build. Please run npm run package and commit the changes!"
58+
echo "Detected uncommitted changes after build. Please run bun package and commit the changes!"
5959
git status
6060
git config user.name "${{ github.actor }}"
6161
git config user.email "${{ github.actor }}@users.noreply.github.com"

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ where "my-new-feature" describes what you're working on.
2323
This script will install all dependencies for local development.
2424

2525
```shell
26-
npm run setup
26+
bun setup
2727
```
2828

2929
### 4. If you are creating a new helper
3030

3131
```shell
32-
npm run create-helper
32+
bun create-helper
3333
```
3434

3535
### 5. Add tests for any bug fixes or new functionality
3636

37-
All functions must be tested with a unit test. Please follow the existing convention of one exported function per file with a corresponding file to test it. Run tests using `npm run test`, or using the [Jest CLI](https://jestjs.io/docs/cli).
37+
All functions must be tested with a unit test. Please follow the existing convention of one exported function per file with a corresponding file to test it. Run tests using `bun test`.
3838

3939
There are also integration tests present in the [workflow](./.github/workflows) directory, which will actually run each Github Action using the code from this repository. This allows you to test your changes right within the pull request you make.
4040

bun.lock

Lines changed: 30 additions & 1027 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/110.index.js

Lines changed: 15 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/110.index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/208.index.js

Lines changed: 10 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)