Skip to content

Commit 7ac9d4c

Browse files
committed
Exclude integration tests from eslint/prettier
1 parent 3ad9fec commit 7ac9d4c

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

packages/nextjs/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
ecmaVersion: 2018,
1010
},
1111
extends: ['@sentry-internal/sdk'],
12-
ignorePatterns: ['build/**', 'dist/**', 'esm/**', 'examples/**', 'scripts/**'],
12+
ignorePatterns: ['build/**', 'dist/**', 'esm/**', 'examples/**', 'scripts/**', 'test/integration/**'],
1313
overrides: [
1414
{
1515
files: ['*.ts', '*.tsx', '*.d.ts'],

packages/nextjs/.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test/integration

packages/nextjs/src/performance/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable @typescript-eslint/no-explicit-any */
2+
13
import { Primitive, Transaction, TransactionContext } from '@sentry/types';
24
import { fill, getGlobalObject, stripUrlQueryAndFragment } from '@sentry/utils';
35
import { default as Router } from 'next/router';

packages/nextjs/test/integration/test/browser/tracingNavigate.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { expectRequestCount, expectTransaction, isTransactionRequest } = require('../utils');
1+
const { expectRequestCount, expectTransaction, isTransactionRequest, sleep } = require('../utils');
22

33
module.exports = async ({ page, url, requests }) => {
44
await page.goto(`${url}/healthy`);
@@ -14,6 +14,7 @@ module.exports = async ({ page, url, requests }) => {
1414
},
1515
});
1616

17+
await sleep(100);
1718
await page.click('a#alsoHealthy');
1819
await page.waitForRequest(isTransactionRequest);
1920

@@ -30,6 +31,7 @@ module.exports = async ({ page, url, requests }) => {
3031
},
3132
});
3233

34+
await sleep(100);
3335
await page.click('a#healthy');
3436
await page.waitForRequest(isTransactionRequest);
3537

scripts/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ elif [[ "$(cut -d. -f1 <<<"$NODE_VERSION")" -le 8 ]]; then
2525
cd ../..
2626

2727
# ember tests happen separately, and the rest fail on node 8 for various syntax or dependency reasons
28-
yarn test --ignore="@sentry/ember" --ignore="@sentry-internal/eslint-plugin-sdk" --ignore="@sentry/react" --ignore="@sentry/wasm" --ignore="@sentry/gatsby" --ignore="@sentry/serverless"
28+
yarn test --ignore="@sentry/ember" --ignore="@sentry-internal/eslint-plugin-sdk" --ignore="@sentry/react" --ignore="@sentry/wasm" --ignore="@sentry/gatsby" --ignore="@sentry/serverless" --ignore="@sentry/nextjs"
2929

3030
else
3131
yarn test --ignore="@sentry/ember"

0 commit comments

Comments
 (0)