Skip to content

Commit

Permalink
Revert "ci test spawn wrap 2"
Browse files Browse the repository at this point in the history
This reverts commit 97a0ad4.
  • Loading branch information
eternauta1337 committed Apr 1, 2024
1 parent 97a0ad4 commit ef597b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/ethernaut-cli/test/navigate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('navigation', function () {
terminal.notHas('test')
terminal.notHas('navigate')
terminal.notHas('run Runs a user-defined')
terminal.notHas('node Starts')
terminal.notHas('node')
terminal.notHas('help')
terminal.notHas('console')
})
Expand Down
14 changes: 1 addition & 13 deletions packages/ethernaut-common/src/test/terminal.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const pty = require('node-pty')
const os = require('os')
const path = require('path')
const debug = require('ethernaut-common/src/ui/debug')
const assert = require('assert')
const chalk = require('chalk')
Expand Down Expand Up @@ -52,18 +51,7 @@ class Terminal {
this.running = true
debug.log(`Running command: ${command}`, 'terminal')

const p = path.resolve(
__dirname,
'../../../../',
'node_modules/nyc/bin/wrap.js',
)
const h = path.resolve(
__dirname,
'../../../../',
'node_modules/.bin/hardhat',
)
const c = command.replace('npx hardhat', `node ${p} ${h}`)
this._write(`${c} && sleep 1 && exit\r`)
this._write(`${command} && sleep 1 && exit\r`)

const completion = this._waitForCompletion()
const waitPromise = wait(delay)
Expand Down
2 changes: 1 addition & 1 deletion packages/ethernaut-interact-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "npm run install:test",
"compile": "echo 'No compile step'",
"install:test": "cd test/fixture-projects/basic-project && npm install",
"test": "nyc --all --use-spawn-wrap --reporter text --reporter nyc-report-lcov-absolute mocha --exit --timeout 60000 --require 'test/setup.js' --recursive '../../**/*.test.js' --ignore '../../fixture-projects/**/*'"
"test": "nyc --all --reporter text --reporter nyc-report-lcov-absolute mocha --exit --timeout 60000 --require 'test/setup.js' --recursive '../../**/*.test.js' --ignore '../../fixture-projects/**/*'"
},
"author": "theethernaut",
"license": "ISC",
Expand Down

0 comments on commit ef597b2

Please sign in to comment.