You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Contributing] How do I whitelist sinon for a new test case for a PR? #86157
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?
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
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
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
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
Activity
[-]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?[/+][-]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?[/+][-][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?[/+][-][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?[/+]sandy081 commentedon Dec 4, 2019
Allowed sinon in all test packages
jedwards1211 commentedon Dec 4, 2019
Thanks!