Skip to content

Commit a5bd7f9

Browse files
authored
Merge pull request #47 from nulab/chore/migrate-to-vitest
chore: migrate to vitest
2 parents 7f7f1cf + 1df8b14 commit a5bd7f9

File tree

75 files changed

+4751
-5985
lines changed

Some content is hidden

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

75 files changed

+4751
-5985
lines changed

jest.config.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

memory-bank/techContext.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
- **graphql**: Used for field selection parsing and processing
1616

1717
### Development Tools
18-
- **Jest**: Testing framework
18+
- **Vitest**: Fast and modern testing framework powered by Vite
1919
- **ESLint**: Code quality and style validation
2020
- **Prettier**: Code formatting
2121
- **release-it**: Release management automation
@@ -109,15 +109,22 @@ graph TD
109109
## Test Strategy
110110

111111
### Unit Tests
112-
- Testing framework using Jest
113-
- Using mocks to isolate Backlog API dependencies
112+
- Testing framework using Vitest (fast and modern, powered by Vite)
113+
- Using mocks with vi (Vitest's mocking API) to isolate Backlog API dependencies
114114
- Creating test files corresponding to each tool
115+
- Support for watch mode for better development experience
115116

116117
### Running Tests
117118
```bash
118119
# Run all tests
119120
npm test
120121

122+
# Run tests in watch mode
123+
npm run test:watch
124+
125+
# Run tests with coverage
126+
npm run test:coverage
127+
121128
# Run specific tests
122129
npm test -- -t "getSpace"
123130
```

0 commit comments

Comments
 (0)