Skip to content

Commit 992f1ff

Browse files
committed
Switch to node:test and remove mocha and hardhat
1 parent b6e79a6 commit 992f1ff

File tree

56 files changed

+103
-2473
lines changed

Some content is hidden

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

56 files changed

+103
-2473
lines changed

.circleci/config.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ jobs:
338338
GAS_REPORT: "./gas-<< parameters.chain-id >>-<< parameters.preset >>.csv"
339339
command: |
340340
TEST_FILES=$(circleci tests glob 'e2e/tests/<< parameters.toml >>/*.e2e.js')
341-
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"
341+
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"
342342
343343
- store_test_results:
344344
path: "/tmp/junit.xml"
@@ -426,10 +426,14 @@ jobs:
426426
GAS_REPORT: "./gas-<< parameters.chain-id >>-<< parameters.preset >>.csv"
427427
command: |
428428
TEST_FILES=$(circleci tests glob 'e2e/tests/<< parameters.toml >>/*.e2e.js')
429-
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"
429+
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"
430430
431431
- store_test_results:
432-
path: "./tmp/junit.xml"
432+
path: "/tmp/junit.xml"
433+
434+
- store_artifacts:
435+
path: "/tmp/junit.xml"
436+
destination: "junit.xml"
433437

434438
- store_artifacts:
435439
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)