Skip to content

Commit

Permalink
Migrate tests to jest (#102)
Browse files Browse the repository at this point in the history
* migrate tests to jest, mocha seems to not be working for some reason

* remove all chai expect
  • Loading branch information
madergaser authored Jul 8, 2024
1 parent 5131044 commit 3cec5e5
Show file tree
Hide file tree
Showing 11 changed files with 10,329 additions and 6,255 deletions.
2 changes: 1 addition & 1 deletion Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ program = "./tests/deps/spl_token_2022.so"
mmm = "mmm3XBJg5gk8XJxEKBvdgptZz6SgK4tXvn36sodowMc"

[scripts]
test = "npx ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
test = "npx jest"

[toolchain]
anchor_version = "0.29.0"
Expand Down
7 changes: 7 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */

module.exports = {
preset: 'ts-jest',
testMatch: ['**/tests/**/*.spec.ts'],
testTimeout: 10000000,
};
Loading

0 comments on commit 3cec5e5

Please sign in to comment.