Skip to content

Commit

Permalink
Unignore test/**/*.test.* for ESLint (#66415)
Browse files Browse the repository at this point in the history
  • Loading branch information
unstubbable authored Jun 3, 2024
1 parent 7ea0337 commit d6e28bc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ packages/next-codemod/**/*.js
packages/next-codemod/**/*.d.ts
packages/next-env/**/*.d.ts
packages/create-next-app/templates/**
test/integration/eslint/**
test/integration/script-loader/**/*
test/development/basic/legacy-decorators/**/*
test/integration/eslint/**/*.js
test/integration/script-loader/**/*.js
test/development/basic/legacy-decorators/**/*.js
test/production/emit-decorator-metadata/**/*.js
!test/**/*.test.*
test/e2e/app-dir/rsc-errors/app/swc/use-client/page.js
test-timings.json
packages/next-swc/crates/**
Expand Down
4 changes: 2 additions & 2 deletions test/integration/eslint/test/next-lint.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ describe('Next Lint', () => {
expect(output).not.toContain('Synchronous scripts should not be used.')
})

test('output flag create a file respecting the chosen format', async () => {
test('format flag "json" creates a file respecting the chosen format', async () => {
const filePath = `${__dirname}/output/output.json`
const { stdout, stderr } = await nextLint(
dirFileLinting,
Expand Down Expand Up @@ -538,7 +538,7 @@ describe('Next Lint', () => {
}
})

test('output flag create a file respecting the chosen format', async () => {
test('format flag "compact" creates a file respecting the chosen format', async () => {
const filePath = `${__dirname}/output/output.txt`
const { stdout, stderr } = await nextLint(
dirFileLinting,
Expand Down
3 changes: 2 additions & 1 deletion test/turbopack-build-tests-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8458,11 +8458,12 @@
"Next Lint don't create .eslintrc file if package.json has eslintConfig field",
"Next Lint file flag can selectively lint only a single file",
"Next Lint file flag can selectively lints multiple files",
"Next Lint format flag \"compact\" creates a file respecting the chosen format",
"Next Lint format flag \"json\" creates a file respecting the chosen format",
"Next Lint format flag supports additional user-defined formats",
"Next Lint lint files with cjs and mjs file extension",
"Next Lint max warnings flag does not error when warnings do not exceed threshold",
"Next Lint max warnings flag errors when warnings exceed threshold",
"Next Lint output flag create a file respecting the chosen format",
"Next Lint quiet flag suppresses warnings and only reports errors",
"Next Lint should add relative path for dist types in tsconfig.json when app dir exist",
"Next Lint should generate next-env.d.ts before lint command",
Expand Down
3 changes: 2 additions & 1 deletion test/turbopack-dev-tests-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10508,11 +10508,12 @@
"Next Lint don't create .eslintrc file if package.json has eslintConfig field",
"Next Lint file flag can selectively lint only a single file",
"Next Lint file flag can selectively lints multiple files",
"Next Lint format flag \"compact\" creates a file respecting the chosen format",
"Next Lint format flag \"json\" creates a file respecting the chosen format",
"Next Lint format flag supports additional user-defined formats",
"Next Lint lint files with cjs and mjs file extension",
"Next Lint max warnings flag does not error when warnings do not exceed threshold",
"Next Lint max warnings flag errors when warnings exceed threshold",
"Next Lint output flag create a file respecting the chosen format",
"Next Lint quiet flag suppresses warnings and only reports errors",
"Next Lint should add relative path for dist types in tsconfig.json when app dir exist",
"Next Lint should generate next-env.d.ts before lint command",
Expand Down

0 comments on commit d6e28bc

Please sign in to comment.