Skip to content

Commit 59f1bfc

Browse files
authored
Merge pull request #6176 from ethereum/yann300-patch-60
fix hardhat tests
2 parents 08eedc6 + 6809aa2 commit 59f1bfc

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130

131131
remix-ide-browser:
132132
docker:
133-
- image: cimg/node:20.18.3-browsers
133+
- image: cimg/node:20.19.0-browsers
134134
resource_class:
135135
xlarge
136136
working_directory: ~/remix-project

apps/remix-ide-e2e/src/tests/remixd.test.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,15 @@ async function setupHardhatProject(): Promise<void> {
467467
try {
468468
const server = spawn('git clone https://github.com/NomicFoundation/hardhat-boilerplate && cd hardhat-boilerplate && yarn install && yarn add "@typechain/ethers-v5@^10.1.0" && yarn add "@typechain/hardhat@^6.1.2" && yarn add "typechain@^8.1.0" && echo "END"', [], { cwd: process.cwd() + '/apps/remix-ide', shell: true, detached: true })
469469
return new Promise((resolve, reject) => {
470+
server.stdout.on('data', function(data) {
471+
console.log('stdout: ' + data.toString())
472+
})
473+
server.stderr.on('data', function(data) {
474+
console.log('stderr: ' + data.toString())
475+
})
476+
server.on('error', function (err) {
477+
console.error('Failed to start process:', err)
478+
})
470479
server.on('exit', function (exitCode) {
471480
console.log("Child exited with code: " + exitCode);
472481
console.log('end')
@@ -483,6 +492,15 @@ async function compileHardhatProject(): Promise<void> {
483492
try {
484493
const server = spawn('npx hardhat compile', [], { cwd: process.cwd() + '/apps/remix-ide/hardhat-boilerplate', shell: true, detached: true })
485494
return new Promise((resolve, reject) => {
495+
server.stdout.on('data', function(data) {
496+
console.log('stdout: ' + data.toString())
497+
})
498+
server.stderr.on('data', function(data) {
499+
console.log('stderr: ' + data.toString())
500+
})
501+
server.on('error', function (err) {
502+
console.error('Failed to start process:', err)
503+
})
486504
server.on('exit', function (exitCode) {
487505
console.log("Child exited with code: " + exitCode);
488506
console.log('end')
@@ -625,4 +643,4 @@ function resetGitToHead() {
625643
}
626644
console.log(`Git reset to HEAD successfully.\n${stdout}`);
627645
});
628-
}
646+
}

0 commit comments

Comments
 (0)