Skip to content

Commit 002a2cc

Browse files
committed
Switch to node:test and remove mocha and hardhat
1 parent 6fa3341 commit 002a2cc

File tree

52 files changed

+608
-394
lines changed

Some content is hidden

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

52 files changed

+608
-394
lines changed

.circleci/config.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ jobs:
363363
GAS_REPORT: "./gas-<< parameters.chain-id >>-<< parameters.preset >>.csv"
364364
command: |
365365
TEST_FILES=$(circleci tests glob 'e2e/tests/<< parameters.toml >>/*.e2e.js')
366-
echo "$TEST_FILES" | circleci tests run --verbose --split-by=timings --command="xargs yarn mocha --no-bail --exit --reporter mocha-multi --reporter-options spec=-,junit=/tmp/junit.xml"
366+
echo "$TEST_FILES" | circleci tests run --verbose --split-by=timings --command="xargs node --test --test-reporter tap --test-reporter junit --test-reporter-destination=stdout --test-reporter-destination=/tmp/junit.xml"
367367
368368
- store_test_results:
369369
path: "/tmp/junit.xml"
@@ -452,10 +452,14 @@ jobs:
452452
GAS_REPORT: "./gas-<< parameters.chain-id >>-<< parameters.preset >>.csv"
453453
command: |
454454
TEST_FILES=$(circleci tests glob 'e2e/tests/<< parameters.toml >>/*.e2e.js')
455-
echo "$TEST_FILES" | circleci tests run --verbose --split-by=timings --command="xargs yarn mocha --no-bail --exit --reporter mocha-multi --reporter-options spec=-,mocha-junit-reporter=tmp/junit.xml"
455+
echo "$TEST_FILES" | circleci tests run --verbose --split-by=timings --command="xargs node --test --test-reporter tap --test-reporter junit --test-reporter-destination=stdout --test-reporter-destination=/tmp/junit.xml"
456456
457457
- store_test_results:
458-
path: "./tmp/junit.xml"
458+
path: "/tmp/junit.xml"
459+
460+
- store_artifacts:
461+
path: "/tmp/junit.xml"
462+
destination: "junit.xml"
459463

460464
- store_artifacts:
461465
path: "./debug-<< parameters.chain-id >>-<< parameters.preset >>.log"

README.md

Lines changed: 1 addition & 1 deletion

e2e/tests/omnibus-arbitrum-mainnet.toml/Liquidation_Rewards_Registrations.e2e.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const { describe, it, before, after } = require('node:test');
12
const crypto = require('crypto');
23
const assert = require('assert');
34
const { ethers } = require('ethers');

e2e/tests/omnibus-arbitrum-mainnet.toml/Liquidity_Provider_ARB.e2e.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const { describe, it, before, after } = require('node:test');
12
const crypto = require('crypto');
23
const assert = require('assert');
34
const { ethers } = require('ethers');

e2e/tests/omnibus-arbitrum-mainnet.toml/Liquidity_Provider_USDC.e2e.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const { describe, it, before, after } = require('node:test');
12
const crypto = require('crypto');
23
const assert = require('assert');
34
const { ethers } = require('ethers');

e2e/tests/omnibus-arbitrum-mainnet.toml/Liquidity_Provider_USDe.e2e.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const { describe, it, before, after } = require('node:test');
12
const crypto = require('crypto');
23
const assert = require('assert');
34
const { ethers } = require('ethers');

e2e/tests/omnibus-arbitrum-mainnet.toml/Liquidity_Provider_WETH.e2e.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const { describe, it, before, after } = require('node:test');
12
const crypto = require('crypto');
23
const assert = require('assert');
34
const { ethers } = require('ethers');

e2e/tests/omnibus-arbitrum-mainnet.toml/Liquidity_Provider_sUSDe.e2e.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const { describe, it, before, after } = require('node:test');
12
const crypto = require('crypto');
23
const assert = require('assert');
34
const { ethers } = require('ethers');

e2e/tests/omnibus-arbitrum-mainnet.toml/Liquidity_Provider_weETH.e2e.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const { describe, it, before, after } = require('node:test');
12
const crypto = require('crypto');
23
const assert = require('assert');
34
const { ethers } = require('ethers');

e2e/tests/omnibus-arbitrum-mainnet.toml/Liquidity_Provider_wstETH.e2e.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const { describe, it, before, after } = require('node:test');
12
const crypto = require('crypto');
23
const assert = require('assert');
34
const { ethers } = require('ethers');

0 commit comments

Comments
 (0)