Skip to content

Commit a7d172d

Browse files
authored
Fix integration tests (#775)
1 parent 655220a commit a7d172d

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

test/integration/projects.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,25 @@ module.exports = [
109109
]
110110
},
111111
{
112-
repository: 'https://github.com/zeit/next.js',
112+
repository: 'https://github.com/vercel/next.js',
113113
extraArguments: [
114114
...typescriptArguments,
115115

116116
'--ignore-pattern',
117-
'examples/**'
117+
'examples/**',
118+
119+
// These files use `>` in jsx
120+
'--ignore-pattern',
121+
'test/integration/**'
122+
]
123+
},
124+
{
125+
repository: 'https://github.com/chakra-ui/chakra-ui',
126+
extraArguments: [
127+
'--ignore-pattern',
128+
'scripts/create-package.js' // This file use `package` keyword as variable
118129
]
119130
},
120-
'https://github.com/chakra-ui/chakra-ui',
121131
'https://github.com/ReactTraining/react-router',
122132
'https://github.com/facebook/relay',
123133
'https://github.com/mozilla/pdf.js'

test/integration/test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ list.run()
150150
const {file, project, destination} = error2.eslintJob;
151151
const {line} = error2.eslintMessage;
152152

153+
// TODO: The default branch of `next.js` is not master, find a way to link to the default branch
153154
console.error(chalk.gray(`${project.repository}/tree/master/${path.relative(destination, file.filePath)}#L${line}`));
154155
console.error(chalk.gray(JSON.stringify(error2.eslintMessage, undefined, 2)));
155156
}

0 commit comments

Comments
 (0)