Skip to content

cleanup unused mocha/chai packages #6645

Closed

Description

@shiftkey

After #6518 is reviewed and merged, we'll officially have no need to keep mocha and chai around. This means we should be able to remove these packages from the project:

  • @types/chai
  • @types/chai-datetime
  • chai
  • chai-as-promised
  • chai-datetime
  • mocha
  • mocha-junit-reporter
  • mocha-multi-reporters

As well as this test setup:

import { use } from 'chai'
use(require('chai-datetime'))

We can then drop this bit of documentation:

https://github.com/desktop/desktop/blob/933efd9761c1a5bf99697c3b478a7d73fae14d55/docs/technical/adding-tests.md#transitioning-to-jest

After doing that, you can check there are no outstanding issues by running these commands and ensuring the tests continue to pass:

$ yarn
$ yarn build:prod
$ yarn test

Activity

  1. added
    tech-debt
    help wanted
    and removed
    help wanted
    on Jan 16, 2019
  2. shiftkey commented on Jan 16, 2019

    @shiftkey
    MemberAuthor

    Dropping help wanted until this is ready to be worked on

  3. added
    help wanted
    on Jan 17, 2019
  4. shiftkey commented on Jan 17, 2019

    @shiftkey
    MemberAuthor

    #6518 has been merged, so this is available to be worked on

  5. Daniel-McCarthy commented on Jan 22, 2019

    @Daniel-McCarthy
    Member

    I would like to take on this Issue. I'll be happy to make a pull request once completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

help wantedtech-debt

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions