Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit d61f6bb

Browse files
build(deps-dev): bump chai from 4.3.10 to 5.0.0 (#6035)
* build(deps-dev): bump chai from 4.3.10 to 5.0.0 Bumps [chai](https://github.com/chaijs/chai) from 4.3.10 to 5.0.0. - [Release notes](https://github.com/chaijs/chai/releases) - [Changelog](https://github.com/chaijs/chai/blob/main/History.md) - [Commits](chaijs/chai@v4.3.10...v5.0.0) --- updated-dependencies: - dependency-name: chai dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Fixup jest to work with ESM * Update name-service to use jest * Remove chai dependency * Update lockfile * Remove chai-as-promised from TLV * Update token-js for new chai * Update ts-jest version in name-service --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jon Cinque <[email protected]>
1 parent 65a92e6 commit d61f6bb

Some content is hidden

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

54 files changed

+466
-350
lines changed

account-compression/sdk/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,10 @@
7070
"@solana/eslint-config-solana": "^1.0.2",
7171
"@solana/prettier-config-solana": "^0.0.4",
7272
"@types/bn.js": "^5.1.0",
73-
"@types/chai": "^4.3.0",
7473
"@types/jest": "^29.5.11",
7574
"@types/node-fetch": "^2.6.11",
7675
"@typescript-eslint/eslint-plugin": "^6.19.1",
7776
"@typescript-eslint/parser": "^6.19.1",
78-
"chai": "^4.3.4",
7977
"eslint": "^8.56.0",
8078
"eslint-config-prettier": "^9.1.0",
8179
"eslint-config-turbo": "^1.11.3",

account-compression/sdk/tests/accountCompression.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
import { strict as assert } from 'node:assert';
2+
13
import { AnchorProvider } from '@project-serum/anchor';
24
import NodeWallet from '@project-serum/anchor/dist/cjs/nodewallet';
35
import { Connection, Keypair, PublicKey, TransactionInstruction } from '@solana/web3.js';
46
import { BN } from 'bn.js';
5-
import { assert } from 'chai';
67
import * as crypto from 'crypto';
78

89
import {

account-compression/sdk/tests/accounts/concurrentMerkleTreeAccount.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import { strict as assert } from 'node:assert';
2+
13
import { AnchorProvider } from '@project-serum/anchor';
24
import NodeWallet from '@project-serum/anchor/dist/cjs/nodewallet';
35
import { Connection, Keypair, PublicKey } from '@solana/web3.js';
4-
import { assert } from 'chai';
56

67
import { ALL_DEPTH_SIZE_PAIRS, ConcurrentMerkleTreeAccount, getConcurrentMerkleTreeAccountSize } from '../../src';
78
import { emptyNode, MerkleTree } from '../../src/merkle-tree';

account-compression/sdk/tests/events/applicationData.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
import { strict as assert } from "node:assert";
2+
13
import { BN } from "bn.js";
2-
import { assert } from "chai";
34

45
import { deserializeApplicationDataEvent } from "../../src";
56

account-compression/sdk/tests/events/changelog.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
import { strict as assert } from "node:assert";
2+
13
import { AnchorProvider } from "@project-serum/anchor";
24
import NodeWallet from "@project-serum/anchor/dist/cjs/nodewallet";
35
import { bs58 } from "@project-serum/anchor/dist/cjs/utils/bytes";
46
import { Connection, Keypair, PublicKey } from "@solana/web3.js";
57
import { BN } from "bn.js";
6-
import { assert } from "chai";
78
import * as crypto from "crypto";
89

910
import {

account-compression/sdk/tests/merkleTree.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { assert } from "chai";
1+
import { strict as assert } from "node:assert";
2+
23
import * as crypto from "crypto";
34

45
import { emptyNode, MerkleTree } from "../src";

libraries/type-length-value/js/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@
4949
"@types/node": "^20.11.6",
5050
"@typescript-eslint/eslint-plugin": "^6.19.1",
5151
"@typescript-eslint/parser": "^6.19.1",
52-
"chai": "^4.3.10",
53-
"chai-as-promised": "^7.1.1",
52+
"chai": "^5.0.0",
5453
"eslint": "^8.56.0",
5554
"eslint-config-prettier": "^9.1.0",
5655
"eslint-plugin-prettier": "^5.1.3",

memo/js/jest.config.cjs

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

memo/js/jest.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { JestConfigWithTsJest } from 'ts-jest';
2+
3+
const jestConfig: JestConfigWithTsJest = {
4+
preset: 'ts-jest/presets/default-esm',
5+
};
6+
7+
export default jestConfig;

memo/js/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
"lint": "prettier --check '{*,**/*}.{ts,tsx,js,jsx,json}' && eslint --max-warnings 0 .",
4040
"lint:fix": "npm run fmt && eslint --fix .",
4141
"test": "npm run test:unit && npm run test:e2e",
42-
"test:unit": "jest test/unit",
43-
"test:e2e": "start-server-and-test 'solana-test-validator -r -q' http://127.0.0.1:8899/health 'jest test/e2e'",
42+
"test:unit": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest test/unit",
43+
"test:e2e": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" start-server-and-test 'solana-test-validator -r -q' http://127.0.0.1:8899/health 'jest test/e2e'",
4444
"deploy": "npm run deploy:docs",
4545
"docs": "shx rm -rf docs && typedoc && shx cp .nojekyll docs/",
4646
"deploy:docs": "npm run docs && gh-pages --dest memo/js --dist docs --dotfiles"
@@ -59,7 +59,7 @@
5959
"@types/node-fetch": "^2.6.11",
6060
"@typescript-eslint/eslint-plugin": "^6.19.1",
6161
"@typescript-eslint/parser": "^6.19.1",
62-
"chai": "^4.3.6",
62+
"chai": "^5.0.0",
6363
"eslint": "^8.56.0",
6464
"eslint-config-prettier": "^9.1.0",
6565
"eslint-plugin-prettier": "^5.1.3",

0 commit comments

Comments
 (0)