Skip to content

Commit 369f865

Browse files
committed
replace jest eslint rules
1 parent 3ecdbaa commit 369f865

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

packages/core/test/lib/transports/offline.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ describe('makeOfflineTransport', () => {
410410
START_DELAY + 2_000,
411411
);
412412

413-
// eslint-disable-next-line jest/no-disabled-tests
413+
// eslint-disable-next-line @sentry-internal/sdk/no-skipped-tests
414414
it.skip(
415415
'Follows the Retry-After header',
416416
async () => {

packages/eslint-config-sdk/src/base.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -188,24 +188,6 @@ module.exports = {
188188
'@sentry-internal/sdk/no-skipped-tests': 'error',
189189
},
190190
},
191-
{
192-
// Configuration only for test files (this won't apply to utils or other files in test directories)
193-
plugins: ['jest'],
194-
env: {
195-
jest: true,
196-
},
197-
files: ['test.ts', '*.test.ts', '*.test.tsx', '*.test.js', '*.test.jsx'],
198-
rules: {
199-
// Prevent permanent usage of `it.only`, `fit`, `test.only` etc
200-
// We want to avoid debugging leftovers making their way into the codebase
201-
'jest/no-focused-tests': 'error',
202-
203-
// Prevent permanent usage of `it.skip`, `xit`, `test.skip` etc
204-
// We want to avoid debugging leftovers making their way into the codebase
205-
// If there's a good reason to skip a test (e.g. bad flakiness), just add an ignore comment
206-
'jest/no-disabled-tests': 'error',
207-
},
208-
},
209191
{
210192
// Configuration for config files like webpack/rollup
211193
files: ['*.config.js', '*.config.mjs'],

packages/profiling-node/test/cpu_profiler.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ describe('Profiler bindings', () => {
316316
expect(profile?.measurements?.['memory_footprint']?.values.length).toBeLessThanOrEqual(300);
317317
});
318318

319-
// eslint-disable-next-line jest/no-disabled-tests
319+
// eslint-disable-next-line @sentry-internal/sdk/no-skipped-tests
320320
it.skip('includes deopt reason', async () => {
321321
// https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#52-the-object-being-iterated-is-not-a-simple-enumerable
322322
function iterateOverLargeHashTable() {

0 commit comments

Comments
 (0)