From 77ad6645cd7214bfbe34b50a29736cc4283ca7b5 Mon Sep 17 00:00:00 2001 From: fisker Date: Wed, 17 Jun 2020 17:38:41 +0800 Subject: [PATCH] Fix integration tests --- test/integration/projects.js | 10 ++++++++-- test/integration/test.js | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/test/integration/projects.js b/test/integration/projects.js index 1c028914e3..3a1a75b3be 100644 --- a/test/integration/projects.js +++ b/test/integration/projects.js @@ -109,7 +109,7 @@ module.exports = [ ] }, { - repository: 'https://github.com/zeit/next.js', + repository: 'https://github.com/vercel/next.js', extraArguments: [ ...typescriptArguments, @@ -117,7 +117,13 @@ module.exports = [ 'examples/**' ] }, - 'https://github.com/chakra-ui/chakra-ui', + { + 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/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..9cfdb6d105 100755 --- a/test/integration/test.js +++ b/test/integration/test.js @@ -150,7 +150,7 @@ list.run() const {file, project, destination} = error2.eslintJob; const {line} = error2.eslintMessage; - console.error(chalk.gray(`${project.repository}/tree/master/${path.relative(destination, file.filePath)}#L${line}`)); + console.error(chalk.gray(`${project.repository}/blob/master/${path.relative(destination, file.filePath)}#L${line}`)); console.error(chalk.gray(JSON.stringify(error2.eslintMessage, undefined, 2))); } }