Skip to content

[Contributing] How do I whitelist sinon for a new test case for a PR? #86157

Closed

Description

I need sinon.useFakeTimers in a new test for a PR I'm making but the precommit hook doesn't allow it:

src/vs/base/test/common/decorators.test.ts:6:1:Imports violates 'assert or vs/nls or **/vs/base/common/** or **/vs/base/test/common/**' restrictions. See https://github.com/Microsoft/vscode/wiki/Code-Organization

I don't see where I would tell it that importing from sinon in the tests is okay, and I'm wondering if there's any reason you don't want me to use Sinon in these tests?

Activity

  1. changed the title [-]How do I make hygiene allow me to import sinon in a new test case?[/-] [+]How do I make hygiene allow me to import sinon in a new test case for a PR?[/+] on Dec 3, 2019
  2. changed the title [-]How do I make hygiene allow me to import sinon in a new test case for a PR?[/-] [+][Contributing docs] How do I make hygiene allow me to import sinon in a new test case for a PR?[/+] on Dec 3, 2019
  3. changed the title [-][Contributing docs] How do I make hygiene allow me to import sinon in a new test case for a PR?[/-] [+][Contributing] How do I make hygiene allow me to import sinon in a new test case for a PR?[/+] on Dec 3, 2019
  4. changed the title [-][Contributing] How do I make hygiene allow me to import sinon in a new test case for a PR?[/-] [+][Contributing] How do I whitelist sinon for a new test case for a PR?[/+] on Dec 3, 2019
  5. sandy081 commented on Dec 4, 2019

    @sandy081
    Member

    Allowed sinon in all test packages

  6. jedwards1211 commented on Dec 4, 2019

    @jedwards1211
    ContributorAuthor

    Thanks!

  7. locked and limited conversation to collaborators on Jan 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions