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
My suggestion:
For config canonical/jest, either disable the check-tag-names rule or modify its options so it classifies docblocks written as @jest-environment ** as valid
The text was updated successfully, but these errors were encountered:
/**
* @jest-environment jsdom
* @jest-environment-options {"url": "https://jestjs.io/"}
*/
test('use jsdom and set the URL in this test file', () => {
expect(window.location.href).toBe('https://jestjs.io/');
});
Jest test environments are now recommended to be set per-file to improve performance by adding a
@jest-environment
docblock at the top of the file:https://jestjs.io/docs/configuration#testenvironment-string
However, this is clashing with rule Check Tag Names https://github.com/gajus/eslint-plugin-jsdoc/blob/master/.README/rules/check-tag-names.md
My suggestion:
For config
canonical/jest
, either disable the check-tag-names rule or modify its options so it classifies docblocks written as@jest-environment **
as validThe text was updated successfully, but these errors were encountered: