Skip to content

Commit

Permalink
Alternative JEST timeout and build order
Browse files Browse the repository at this point in the history
  • Loading branch information
WietseWind committed Jun 30, 2023
1 parent a352142 commit 35a715a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"scripts": {
"prepare": "npm run clean && npm run lint && npm run test && npm run build && npm run browserify",
"prepare": "npm run clean && npm run lint && npm run build && npm run test && npm run browserify",
"clean": "rm -rf dist",
"build": "tsc && cat dist/src/index.js | sed 's/\\/\\/ WEBSOCKET \\/\\///g' | sed 's/new websocket_1.w3cwebsocket/new (typeof WssClient !== typeof _NA_ ? WssClient : websocket_1.w3cwebsocket)/g'|tee dist/src/index.js | echo $(wc -l)' lines written'",
"watch": "tsc -w",
Expand Down
2 changes: 2 additions & 0 deletions test/common.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { XrplClient } from "../dist/src/index.js";

jest.setTimeout(30 * 1000);

let client: XrplClient;

describe("Common", () => {
Expand Down
2 changes: 2 additions & 0 deletions test/network-definitions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { XrplClient } from "../dist/src/index.js";

jest.setTimeout(30 * 1000);

describe("Network specific", () => {
describe("Handle network definitions", () => {
const networkWithDefinitions = "wss://hooks-testnet-v3.xrpl-labs.com";
Expand Down

0 comments on commit 35a715a

Please sign in to comment.