coinbase / build-onchain-apps

Accelerate your onchain creativity with the Build Onchain Apps Template. ⛵️
https://buildonchainapps.xyz
MIT License
714 stars 120 forks source link

Bug: Failing unit tests within template/web/app #496

Open cpcramer opened 6 months ago

cpcramer commented 6 months ago

Describe the bug and the steps to reproduce it

  1. Add jest.config.js roots value '/app/'.
  2. Run npm run test in /template/web/app.
  3. 3 tests will fail:
    • ContractDemo.test.tsx
    • NotConnected.test.tsx
    • useOnchainCoffeeMemos.test.tsx

What's the expected behavior?

Tests should pass.

What version of the libraries are you using?

No response

adarshswaminath commented 5 months ago

insted of npm run test try yarn install and yarn run test

danimesq commented 4 months ago

@cpcramer, did you try the above?