Skip to content

Commit

Permalink
Fixing crypto tests
Browse files Browse the repository at this point in the history
  • Loading branch information
troelsfr committed Nov 10, 2022
1 parent 14a5f55 commit 0390dd0
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 26 deletions.
7 changes: 7 additions & 0 deletions zilliqa/js/account/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,18 @@ ts_project(
"//:node_modules/@types/node",
"//:node_modules/@typescript-eslint/eslint-plugin",
"//:node_modules/@typescript-eslint/parser",
"//:node_modules/@zilliqa-js/core",
"//:node_modules/@zilliqa-js/crypto",
"//:node_modules/@zilliqa-js/proto",
"//:node_modules/@zilliqa-js/util",
"//:node_modules/ansi-styles",
"//:node_modules/bip39",
"//:node_modules/bn.js",
"//:node_modules/buffer-from",
"//:node_modules/cross-fetch",
"//:node_modules/expect",
"//:node_modules/hash.js",
"//:node_modules/hdkey",
"//:node_modules/jest-diff",
"//:node_modules/jest-fetch-mock",
"//:node_modules/jest-get-type",
Expand Down
7 changes: 1 addition & 6 deletions zilliqa/js/account/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{
"extends": "../../../tsconfig.test.json",
"include": ["src", "test", "../typings/**/*.d.ts"],
"references": [
{ "path": "../core" },
{ "path": "../crypto" },
{ "path": "../util" }
]
"include": ["src", "test", "../typings/**/*.d.ts"]
}
7 changes: 1 addition & 6 deletions zilliqa/js/blockchain/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{
"extends": "../../../tsconfig.test.json",
"include": ["src", "test", "../typings/**/*.d.ts"],
"references": [
{ "path": "../account" },
{ "path": "../contract" },
{ "path": "../core" }
]
"include": ["src", "test", "../typings/**/*.d.ts"]
}
7 changes: 1 addition & 6 deletions zilliqa/js/contract/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{
"extends": "../../../tsconfig.test.json",
"include": ["src", "test", "../typings/**/*.d.ts"],
"references": [
{ "path": "../account" },
{ "path": "../core" },
{ "path": "../util" }
]
"include": ["src", "test", "../typings/**/*.d.ts"]
}
3 changes: 1 addition & 2 deletions zilliqa/js/core/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"extends": "../../../tsconfig.test.json",
"include": ["src", "test", "../typings/**/*.d.ts"],
"references": []
"include": ["src", "test", "../typings/**/*.d.ts"]
}
18 changes: 16 additions & 2 deletions zilliqa/js/crypto/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ npm_package(

ts_project(
name = "test_src",
srcs = glob(
srcs = [
"//zilliqa/js:aes-js.d",
"//zilliqa/js:hmac-drbg.d",
"//zilliqa/js:pbkdf2.d",
] + glob(
[
"src/*.ts",
"src/**/*.ts",
Expand All @@ -98,25 +102,35 @@ ts_project(
"//:node_modules/@testing-library/react",
"//:node_modules/@types/bn.js",
"//:node_modules/@types/camelcase",
"//:node_modules/@types/elliptic",
"//:node_modules/@types/jest",
"//:node_modules/@types/long",
"//:node_modules/@types/node",
"//:node_modules/@types/uuid",
"//:node_modules/@typescript-eslint/eslint-plugin",
"//:node_modules/@typescript-eslint/parser",
"//:node_modules/@zilliqa-js/util",
"//:node_modules/aes-js",
"//:node_modules/ansi-styles",
"//:node_modules/bn.js",
"//:node_modules/buffer-from",
"//:node_modules/cross-fetch",
"//:node_modules/elliptic",
"//:node_modules/expect",
"//:node_modules/hash.js",
"//:node_modules/hmac-drbg",
"//:node_modules/jest-diff",
"//:node_modules/jest-fetch-mock",
"//:node_modules/jest-get-type",
"//:node_modules/jest-matcher-utils",
"//:node_modules/long",
"//:node_modules/node-fetch",
"//:node_modules/pbkdf2",
"//:node_modules/pretty-format",
"//:node_modules/scrypt-js",
"//:node_modules/sodium-randbytes",
"//:node_modules/source-map",
"//:node_modules/tslib",
"//:node_modules/uuid",
],
)

Expand Down
3 changes: 1 addition & 2 deletions zilliqa/js/crypto/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"extends": "../../../tsconfig.test.json",
"include": ["src", "test", "../typings/**/*.d.ts"],
"references": [{ "path": "../util" }]
"include": ["src", "test", "../typings/**/*.d.ts"]
}
3 changes: 1 addition & 2 deletions zilliqa/js/subscriptions/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"extends": "../../../tsconfig.test.json",
"include": ["src", "test", "../typings/**/*.d.ts"],
"references": []
"include": ["src", "test", "../typings/**/*.d.ts"]
}

0 comments on commit 0390dd0

Please sign in to comment.