Skip to content

Commit

Permalink
fix: don't disable e2e build linting as it's isolated
Browse files Browse the repository at this point in the history
  • Loading branch information
wyattjoh committed May 23, 2024
1 parent 141d5b3 commit cb63e1e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions test/lib/next-modes/next-start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { NextInstance } from './base'
import spawn from 'cross-spawn'
import { Span } from 'next/dist/trace'
import stripAnsi from 'strip-ansi'
import { shouldDisableLinting } from 'next-test-utils'

export class NextStartInstance extends NextInstance {
private _buildId: string
Expand Down Expand Up @@ -70,12 +69,6 @@ export class NextStartInstance extends NextInstance {
buildArgs = this.buildCommand.split(' ')
}

// Disable linting if the directory provides an ESLint configuration. This
// prevents the project's eslint configuration from affecting the test.
if (shouldDisableLinting(this.testDir)) {
buildArgs.push('--no-lint')
}

if (this.startCommand) {
startArgs = this.startCommand.split(' ')
}
Expand Down

0 comments on commit cb63e1e

Please sign in to comment.