From d6e28bca0ecc76d4078a74aed9d1669815880abc Mon Sep 17 00:00:00 2001 From: Hendrik Liebau Date: Mon, 3 Jun 2024 18:15:29 +0200 Subject: [PATCH] Unignore `test/**/*.test.*` for ESLint (#66415) --- .eslintignore | 7 ++++--- test/integration/eslint/test/next-lint.test.js | 4 ++-- test/turbopack-build-tests-manifest.json | 3 ++- test/turbopack-dev-tests-manifest.json | 3 ++- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.eslintignore b/.eslintignore index d9ff00758757a..95ef16d8d0d3f 100644 --- a/.eslintignore +++ b/.eslintignore @@ -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/** diff --git a/test/integration/eslint/test/next-lint.test.js b/test/integration/eslint/test/next-lint.test.js index 21bb553008b22..b2813e7ffe2bb 100644 --- a/test/integration/eslint/test/next-lint.test.js +++ b/test/integration/eslint/test/next-lint.test.js @@ -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, @@ -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, diff --git a/test/turbopack-build-tests-manifest.json b/test/turbopack-build-tests-manifest.json index bc6f5c8891678..f1d10887d6279 100644 --- a/test/turbopack-build-tests-manifest.json +++ b/test/turbopack-build-tests-manifest.json @@ -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", diff --git a/test/turbopack-dev-tests-manifest.json b/test/turbopack-dev-tests-manifest.json index 63e4a1519e1e4..1ca2864ef3985 100644 --- a/test/turbopack-dev-tests-manifest.json +++ b/test/turbopack-dev-tests-manifest.json @@ -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",