Skip to content

Commit

Permalink
Fix integration tests (#775)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Jun 17, 2020
1 parent 655220a commit a7d172d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
16 changes: 13 additions & 3 deletions test/integration/projects.js
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions test/integration/test.js
Expand Up @@ -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)));
}
Expand Down

0 comments on commit a7d172d

Please sign in to comment.