Skip to content

Commit 5fb8ac2

Browse files
committed
Clean up
1 parent 600adda commit 5fb8ac2

20 files changed

+46
-136
lines changed

packages/nextjs/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ module.exports = {
44
...baseConfig,
55
// This prevents the build tests from running when unit tests run. (If they do, they fail, because the build being
66
// tested hasn't necessarily run yet.)
7-
testPathIgnorePatterns: ['<rootDir>/test/buildProcess/'],
7+
testPathIgnorePatterns: ['<rootDir>/test/buildProcess/', '<rootDir>/test/integration/'],
88
};

packages/nextjs/src/config/webpack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { getSentryRelease } from '@sentry/node';
44
import { arrayify, dropUndefinedKeys, escapeStringForRegex, logger, stringMatchesSomePattern } from '@sentry/utils';
55
import { default as SentryWebpackPlugin } from '@sentry/webpack-plugin';
6-
import chalk from 'chalk';
6+
import * as chalk from 'chalk';
77
import * as fs from 'fs';
88
import * as path from 'path';
99

packages/nextjs/test/integration/test/server/cjsApiEndpoints.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NextTestEnv } from '../utils/server';
1+
import { NextTestEnv } from './utils/helpers';
22

33
describe('CommonJS API Endpoints', () => {
44
it('should not intercept unwrapped request', async () => {

packages/nextjs/test/integration/test/server/doubleEndMethodOnVercel.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NextTestEnv } from '../utils/server';
1+
import { NextTestEnv } from './utils/helpers';
22

33
// This test asserts that our wrapping of `res.end` doesn't break API routes on Vercel if people call `res.json` or
44
// `res.send` multiple times in one request handler.

packages/nextjs/test/integration/test/server/errorApiEndpoint.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NextTestEnv } from '../utils/server';
1+
import { NextTestEnv } from './utils/helpers';
22

33
jest.spyOn(console, 'error').mockImplementation();
44

packages/nextjs/test/integration/test/server/errorServerSideProps.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NextTestEnv } from '../utils/server';
1+
import { NextTestEnv } from './utils/helpers';
22

33
describe('Error Server-side Props', () => {
44
it('should capture an error event', async () => {

packages/nextjs/test/integration/test/server/excludedApiEndpoints.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NextTestEnv } from '../utils/server';
1+
import { NextTestEnv } from './utils/helpers';
22

33
describe('Excluded API Endpoints', () => {
44
it('Should exclude API endpoint via RegExp', async () => {

packages/nextjs/test/integration/test/server/tracing200.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NextTestEnv } from '../utils/server';
1+
import { NextTestEnv } from './utils/helpers';
22

33
describe('Tracing 200', () => {
44
it('should capture a transaction', async () => {

packages/nextjs/test/integration/test/server/tracing500.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NextTestEnv } from '../utils/server';
1+
import { NextTestEnv } from './utils/helpers';
22

33
describe('Tracing 500', () => {
44
it('should capture an erroneous transaction', async () => {

packages/nextjs/test/integration/test/server/tracingHttp.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NextTestEnv } from '../utils/server';
1+
import { NextTestEnv } from './utils/helpers';
22
import nock from 'nock';
33

44
describe('Tracing HTTP', () => {

0 commit comments

Comments
 (0)