@@ -262,10 +262,10 @@ Before marking work complete, verify:
262262
263263### Framework
264264
265- - ** Jest ** with ** ts-jest ** preset
266- - ** ` @jest/globals ` ** for imports (` describe ` , ` test ` , ` expect ` )
265+ - ** Vitest ** as the test runner
266+ - ** ` vitest ` ** for imports (` describe ` , ` test ` , ` expect ` , ` beforeEach ` , ` afterEach ` )
267267- ** jsdom** test environment for browser packages, ** node** for the node package
268- - ** jest-ts-webcompat-resolver ** for ESM import resolution
268+ - ** vitest.config.ts ** at root defines test projects for each package
269269
270270### Test Structure
271271
@@ -288,8 +288,7 @@ packages/core/test/
288288Follow the Arrange-Act-Assert pattern:
289289
290290``` typescript
291- import { describe , test } from " @jest/globals" ;
292- import { expect } from " expect" ;
291+ import { describe , test , expect } from " vitest" ;
293292
294293import { ExceptionlessClient } from " ../src/ExceptionlessClient.js" ;
295294
@@ -330,7 +329,7 @@ npm test --workspace=packages/browser
330329npm run test:watch --workspace=packages/core
331330
332331# Run tests matching a pattern
333- npx jest --testPathPattern =" ExceptionlessClient"
332+ npx vitest --run --testNamePattern =" ExceptionlessClient"
334333```
335334
336335### Test Principles (FIRST)
0 commit comments