Skip to content

Commit

Permalink
test: make a correct local run
Browse files Browse the repository at this point in the history
  • Loading branch information
pcheremu committed Oct 4, 2023
1 parent 75a513d commit c46bf18
Show file tree
Hide file tree
Showing 9 changed files with 29,142 additions and 23,460 deletions.
52,541 changes: 29,108 additions & 23,433 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"license": "MIT",
"scripts": {
"postinstall": "cd src/playbook && npm install",
"test:api": "jest --verbose",
"test:api": "./run.sh",
"test:ui": "npx playwright test",
"dev:be": "docker-compose -f docker-compose.yaml up\n",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-pattern 'repos' --ignore-pattern 'git add .'"
Expand Down
7 changes: 7 additions & 0 deletions packages/integration-tests/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

echo "Test run"
npx jest --verbose --testPathPattern=tokens.test.ts
npx jest --verbose --testPathPattern=deposit.test.ts
npx jest --verbose --testPathPattern=common
npx jest --verbose --testPathPattern=transactions
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { localConfig } from "../../src/config";
import { Buffer } from "../../src/entities";
import { Logger } from "../../src/entities";
import { Helper } from "../../src/helper";
import { Playbook } from "../../src/playbook/playbook";
import { localConfig } from "../../../src/config";
import { Buffer } from "../../../src/entities";
import { Logger } from "../../../src/entities";
import { Helper } from "../../../src/helper";
import { Playbook } from "../../../src/playbook/playbook";

describe("Deposit", () => {
const playbook = new Playbook();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as request from "supertest";
import { setTimeout } from "timers/promises";

import { environment } from "../../src/config";
import { localConfig } from "../../src/config";
import { Logger, Token } from "../../src/entities";
import { Playbook } from "../../src/playbook/playbook";
import { environment } from "../../../src/config";
import { localConfig } from "../../../src/config";
import { Logger, Token } from "../../../src/entities";
import { Playbook } from "../../../src/playbook/playbook";

describe("Tokens", () => {
jest.setTimeout(localConfig.standardTimeout);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as request from "supertest";
import { setTimeout } from "timers/promises";

import { environment, localConfig } from "../../src/config";
import { Buffer } from "../../src/entities";
import { Helper } from "../../src/helper";
import { environment, localConfig } from "../../../src/config";
import { Buffer } from "../../../src/entities";
import { Helper } from "../../../src/helper";

describe("Endpoints", () => {
const helper = new Helper();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as request from "supertest";
import { setTimeout } from "timers/promises";

import { environment } from "../../src/config";
import { localConfig } from "../../src/config";
import { Logger } from "../../src/entities";
import { Playbook } from "../../src/playbook/playbook";
import { environment } from "../../../src/config";
import { localConfig } from "../../../src/config";
import { Logger } from "../../../src/entities";
import { Playbook } from "../../../src/playbook/playbook";

describe("NFTs", () => {
jest.setTimeout(localConfig.standardTimeout);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as request from "supertest";
import { setTimeout } from "timers/promises";

import { environment } from "../../src/config";
import { localConfig } from "../../src/config";
import { Buffer, Wallets } from "../../src/entities";
import { Helper } from "../../src/helper";
import { Playbook } from "../../src/playbook/playbook";
import { environment } from "../../../src/config";
import { localConfig } from "../../../src/config";
import { Buffer, Wallets } from "../../../src/entities";
import { Helper } from "../../../src/helper";
import { Playbook } from "../../../src/playbook/playbook";

describe("Transfer", () => {
jest.setTimeout(localConfig.standardTimeout);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as request from "supertest";
import { setTimeout } from "timers/promises";

import { environment, localConfig } from "../../src/config";
import { Buffer, Token, Wallets } from "../../src/entities";
import { Logger } from "../../src/entities";
import { Helper } from "../../src/helper";
import { Playbook } from "../../src/playbook/playbook";
import { environment, localConfig } from "../../../src/config";
import { Buffer, Token, Wallets } from "../../../src/entities";
import { Logger } from "../../../src/entities";
import { Helper } from "../../../src/helper";
import { Playbook } from "../../../src/playbook/playbook";

describe("Withdrawal", () => {
const playbook = new Playbook();
Expand Down

0 comments on commit c46bf18

Please sign in to comment.