Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.

Some tests written in Jest pass when run individually but not when run as a suite #1832

@c0rv0s

Description

@c0rv0s

🐛 Bug Report

In the branch issue-1050/update-tests when running all tests via yarn test in one of the packages many of the tests will fail including test/dao/dao-token-new.test.js and test/dao/dao-id-assign.test.js but when run individually they pass

Have you read the Contributing Guidelines on issues?

  • [. ] Yes

To Reproduce

  1. switch to branch issue-1050/update-tests
  2. start the pretest
  3. yarn test in packages/cli, test will fail
  4. npx jest test/dao/dao-id-assign.test.js, test will pass

Expected behavior

Test should pass whether it is being run on its own or in the batch

Actual Behavior

Tests failed in the full suite run but passed on their own

Context

Mainnet or testnet?

Devchain

Organization

(Enter the URL or ENS name of your organization.)

Environment

  • OS and OS version: macOS 11.2.2
  • Browser and browser version: N/A
  • Add any other context about the problem here.

Reproducible Demo

(Paste the link to an example repo, and exact instructions to reproduce the issue.)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions