Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Remove chai-bignumber #2558

Merged
merged 12 commits into from
May 4, 2020
Merged

Remove chai-bignumber #2558

merged 12 commits into from
May 4, 2020

Conversation

D4nte
Copy link
Contributor

@D4nte D4nte commented Apr 30, 2020

  • Remove chai-bignumber dependency.
  • Removed chai usage from few files
  • Replace use of BigNumber with bigint

Needs DefinitelyTyped/DefinitelyTyped#44368 to be merged and released.

Edit: using @ts-ignore for now.

Helps with #2139.

Franck Royer added 5 commits April 30, 2020 15:36
Because we do not use them a lot and they
actually re-define @types/jest without bigint support.
There are no jest plugin to support BigNumber.js in `expect`,
however, it natively supports `bigint`.

Hence, remove usage of `BigNumber` and `chai.expect` in this
class, the intent is to continue replacing `BigNumber` with
`bigint` in other classes.
@mergify
Copy link
Contributor

mergify bot commented Apr 30, 2020

Are you sure the changelog does not need updating?

thomaseizinger
thomaseizinger previously approved these changes Apr 30, 2020
Copy link
Contributor

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice work @D4nte, enjoying this :)

api_tests/tests/sanity.ts Show resolved Hide resolved
@D4nte D4nte mentioned this pull request May 1, 2020
@luckysori luckysori removed their request for review May 1, 2020 04:09
@thomaseizinger thomaseizinger dismissed their stale review May 1, 2020 04:45

Please request again once ready.

Franck Royer added 2 commits May 1, 2020 15:03
Jest actually support bigint, the types are not up to date.
@D4nte D4nte requested a review from thomaseizinger May 4, 2020 00:20
@mergify
Copy link
Contributor

mergify bot commented May 4, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented May 4, 2020

Build succeeded:

@bors bors bot merged commit 31c51a6 into dev May 4, 2020
@D4nte D4nte deleted the 2139-remove-chai branch May 4, 2020 01:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants