From a7d172d5a45d37802ab89306832c7ec26f6bc331 Mon Sep 17 00:00:00 2001 From: fisker Cheung Date: Wed, 17 Jun 2020 23:30:09 +0800 Subject: [PATCH] Fix integration tests (#775) --- test/integration/projects.js | 16 +++++++++++++--- test/integration/test.js | 1 + 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/test/integration/projects.js b/test/integration/projects.js index 1c028914e3..27d92a15ce 100644 --- a/test/integration/projects.js +++ b/test/integration/projects.js @@ -109,15 +109,25 @@ module.exports = [ ] }, { - repository: 'https://github.com/zeit/next.js', + repository: 'https://github.com/vercel/next.js', extraArguments: [ ...typescriptArguments, '--ignore-pattern', - 'examples/**' + 'examples/**', + + // These files use `>` in jsx + '--ignore-pattern', + 'test/integration/**' + ] + }, + { + repository: 'https://github.com/chakra-ui/chakra-ui', + extraArguments: [ + '--ignore-pattern', + 'scripts/create-package.js' // This file use `package` keyword as variable ] }, - 'https://github.com/chakra-ui/chakra-ui', 'https://github.com/ReactTraining/react-router', 'https://github.com/facebook/relay', 'https://github.com/mozilla/pdf.js' diff --git a/test/integration/test.js b/test/integration/test.js index f1f5927775..a559dca6b9 100755 --- a/test/integration/test.js +++ b/test/integration/test.js @@ -150,6 +150,7 @@ list.run() const {file, project, destination} = error2.eslintJob; const {line} = error2.eslintMessage; + // TODO: The default branch of `next.js` is not master, find a way to link to the default branch console.error(chalk.gray(`${project.repository}/tree/master/${path.relative(destination, file.filePath)}#L${line}`)); console.error(chalk.gray(JSON.stringify(error2.eslintMessage, undefined, 2))); }