Skip to content

Commit

Permalink
feat: upgrade test packages to jest
Browse files Browse the repository at this point in the history
The packages nyc and expect.js didn't have any active commits in many years.
jest seems like a sensible choice to switch to.

In future, the tests might be better refactored to remove the done callback pattern and use proper promises.
Another thing I couldn't easily fix is the beforeEach delay of 200ms, this makes tests unnecessarily slow.
  • Loading branch information
joelluijmes committed Dec 29, 2023
1 parent 4297603 commit b6bbc7a
Show file tree
Hide file tree
Showing 5 changed files with 2,248 additions and 1,069 deletions.
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
};
Loading

0 comments on commit b6bbc7a

Please sign in to comment.