fix: Convert benchmark test files to ES module syntax
Some checks failed
Contract Performance Benchmarks / benchmark-gas-usage (push) Successful in 1m14s
Contract Performance Benchmarks / benchmark-execution-time (push) Successful in 1m4s
Contract Performance Benchmarks / benchmark-throughput (push) Successful in 59s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Failing after 2s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Failing after 2s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Deploy to Testnet / deploy-testnet (push) Failing after 1m9s
Contract Performance Benchmarks / compare-benchmarks (push) Successful in 4s
Deploy to Testnet / notify-deployment (push) Successful in 2s

- Convert gas-usage.test.js from CommonJS require() to ES module import
- Convert execution-time.test.js from CommonJS require() to ES module import
- Convert throughput.test.js from CommonJS require() to ES module import
- Required because contracts/package.json has "type": "module"
This commit is contained in:
aitbc
2026-04-29 16:03:41 +02:00
parent 4562975e9b
commit 24e6003365
3 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
const { expect } = require("chai");
import { expect } from "chai";
describe("Execution Time Benchmarks", function () {
describe("EscrowService", function () {

View File

@@ -1,4 +1,4 @@
const { expect } = require("chai");
import { expect } from "chai";
describe("Gas Usage Benchmarks", function () {
describe("EscrowService", function () {

View File

@@ -1,4 +1,4 @@
const { expect } = require("chai");
import { expect } from "chai";
describe("Throughput Benchmarks", function () {
describe("EscrowService", function () {