Skip to content
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.

Can not run yarn test #25

Closed
zhouzhou84 opened this issue Aug 16, 2018 · 2 comments
Closed

Can not run yarn test #25

zhouzhou84 opened this issue Aug 16, 2018 · 2 comments
Assignees

Comments

@zhouzhou84
Copy link

hello

I git clone this Repositories and Run yarn ganache in a separate terminal

but when I type yarn test ,it gose wrong:

ubuntu@ip-172-31-15-69:~/counterfactual$ yarn test
yarn run v1.9.4
$ yarn ganache &> ganache.log & yarn build:pre && yarn build:packages && wsrun test $PKG --exclude-missing && yarn build:post
$ ./bin/prebuild
$ ganache-cli --gasLimit 0xfffffffffff --port 9545 --account="${npm_package_config_unlockedAccount}" -m "${npm_package_config_mnemonic}"
$ wsrun build $PKG --fast-exit -r --serial --exclude-missing
@counterfactual/configs has no  build script, skipping missing
@counterfactual/run-with-ganache has no  build script, skipping missing
@counterfactual/typescript-typings has no  build script, skipping missing
@counterfactual/test-utils
$ tsc --project tsconfig.json.modified
 | error TS5014: Failed to parse file 'packages/test-utils/tsconfig.json.modified/tsconfig.json': Unexpected token u in JSON at position 0.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
`yarn build` failed with exit code 1
Stopping 1 active children
Aborted execution due to previous error
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ubuntu@ip-172-31-15-69:~/counterfactual$ Ganache CLI v6.1.7 (ganache-core: 2.2.0)
Error: listen EADDRINUSE 127.0.0.1:9545
    at Server.setupListenHandle [as _listen2] (net.js:1336:14)
    at listenInCluster (net.js:1384:12)
    at doListen (net.js:1510:7)
    at process._tickCallback (internal/process/next_tick.js:63:19)
    at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
    at startup (internal/bootstrap/node.js:266:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

system configuration

ubuntu@ip-172-31-15-69:~/counterfactual$ uname -a 
Linux ip-172-31-15-69 4.4.0-1061-aws #70-Ubuntu SMP Fri May 25 21:47:34 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
ubuntu@ip-172-31-15-69:~/counterfactual$ node -v
v10.8.0
ubuntu@ip-172-31-15-69:~/counterfactual$ nodejs -v
v8.11.3
ubuntu@ip-172-31-15-69:~/counterfactual$ yarn -v
1.9.4
ubuntu@ip-172-31-15-69:~/counterfactual$ 

NEED HELP!

@cf19drofxots cf19drofxots self-assigned this Aug 16, 2018
@cf19drofxots
Copy link
Member

@zhouzhou84 I was unable to repro the issue with the same system configuration as you posted.

So the sequence of steps you ran was

  1. git clone
  2. yarn
  3. yarn ganache
  4. yarn test

correct?

Seems like this is the offending line is

Failed to parse file 'packages/test-utils/tsconfig.json.modified/tsconfig.json'

as that's not a valid path.

What do ls packages/test-utils and cat packages/test-utils/package.json show?

@cf19drofxots
Copy link
Member

@zhouzhou84 the build scripts have been updated so you shouldn't have problems if you clone and follow the steps again. You can let me know by making an issue if you do run into other problems.

snario pushed a commit that referenced this issue Mar 27, 2019
snario added a commit that referenced this issue Mar 28, 2019
* Initial commit

* add from machine repo

* add from contracts repo

* WIP

* organization and roadmap

* move files

* WIP

* fix markdown

* small fixes

* use action more

* add CfOperation definition

* install, update, uninstall

* Clean up files a bit

* some fixes to message format

* rename architecture folder to contracts

* reorganize apps section and write some content

* explicitly define criteria

* signature

* clean up and verify install message format

* split off protocols

* don't use hex for non-byte constants

* clean up UPDATE.md

* install txn

* add parameters

* fix

* uninstall transaction

* remove Cleanup sections, normalize tone for README, some fixes in install

* delete stuff

* delete stuff

* move stuff

* delete stuff

* formatting

* WIP Updates to the specs../../

* Update limitations

* Rename ConditionalTransfer

* Add NonceRegistry

* Folder reorg

* Add research folder

* Fold research into main folder readme

* Add missing https

* change word

* Restructure again

* Restructure again

* v1 -> v0

* Update README.md

typos, grammar & a few edits for clarity

* s/v1/v0/g

* document uninstall fix

* Update README.md

* Update protocols.md

* Update protocols.md

* Update protocols.md

* Update protocols.md

* Update contracts.md

* Update protocols.md

* Update README.md

* fix typos

* Use svg badge vs flat

* Fix hyperlink

* explained peer1.address < peer2.address

* use <X>Ack consistently

* uninstall fixes (either missed previously or from bad rebases)

* english fixes

* handshakes

* fix typos

* commitments

* setup commitment, some english fixes

* Update README.md

* Rename v0/protocols.md to 00-protocol.md

* Rename v0/contracts.md to 01-contracts.md

* Move folder

* Update README.md

* Move file

* rename to Design Goals

* note-ize a sentence

* reorg

* fold Multisig Creation into Protocols

* reorg

* fix bug

* add SetRootNonce{Ack}

* Formatting

* Update README.md

broken link for 00-protocol.md

* Rephrasing for precision and readability

* fixing typod link

* Dramatic improvements and introduction of Mermaid

* Try alt .svg file specification

* Try using .png instead

* Add instructions

* Slight cleanup

* english fixes

* english fixes

* rename Parameters, fix descriptions

* protocol description fixes

* improvements to multisig descriptions

* english fix

* rename depNonceKey -> uninstallKey to match contracts (#23)

* rename depNonceKey -> uninstallKey to match contracts

* modify diagrams

* ignore node_modules

* fix missed rename

* minor correction (#24)

* minor correction (#25)

* rename to freeBalanceCfAddress in setup commitment (#29)

* delete unused images (#27)

* split protocols and move them to end (#30)

* Remove Multisend from Setup commitment diagram (#31)

* Update setup-commitment diagram to drop Multisend

* Test commit

* Fix getTurnTaker typo (#32)

*  Make the background color transparent for diagrams (#33)

* Make the background color transparent for diagrams

* Apply build updates

* Update to reflect introduction of AppRegistry (#35)

* App Registry

* more changes

* update diagrams

* fix seq (#36)

* miscellaneous fixes (#37)

* set protocol field to strings

* make InstallParams match

* format table

* more fixes

* more fixes

* Remove sighashes from CfAppInterface (#40)

* add install-virtual-app (#38)

* remove registry (#41)

* Update mermaid files

* Update build files

* fix: spelling error arbtirary -> arbitrary (#42)

Thanks to shootingstar for catching this

* remove multisig{1,2} from InstallVirtualAppParams (#44)

* rename address -> xpub, and cleanup (#45)

* delete peerbalance (unused) (#46)

* Uninstall virtual app (#43)

* [WIP] uninstall virtual app

* fixes

* Update 10-uninstall-virtual-app-protocol.md

Co-Authored-By: IIIIllllIIIIllllIIIIllllIIIIllllIIIIll <xuanji@gmail.com>

* rebuild

* add a summary

* write out commitments and signatures

* add message list

* withdraw protocol specs (#47)

* withdraw protocol

* WIP

* exchange

* exchange

* add fields

* Jeff/intro and typos (#48)

* minor edits

* clarified some phrasing around state-machine-based apps

* added work in progress note at beginning

* fix order of signatures in m4 to match machine definition (#49)

* fix order of signatures in m4 to match machine definition

* fix in message

* Minor typo fix (#51)

* Minor typo fix

* Update 02-state-machines.md

Co-Authored-By: AlexXiong97 <alex.xiong.tech@gmail.com>

* Update 00-introduction.md

* move to readthedocs (#52)

* Fix titles and readme (#53)

* Add specs references for monorepo
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants