Skip to content

Commit 77d4fa3

Browse files
committed
update testing infrastructure
1 parent a47b64c commit 77d4fa3

File tree

11 files changed

+788
-1837
lines changed

11 files changed

+788
-1837
lines changed

test/install-test-deps.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ readdirSync(join(__dirname, 'react')).forEach(version => {
2727
join(__dirname, 'react', version, 'src', 'connect'),
2828
join(__dirname, 'react', version, 'src', 'utils'),
2929
]
30+
if (!existsSync(join(__dirname, 'react', version, 'test'))) {
31+
throw new Error(`react version ${version}'s "test" directory is missing, cannot run tests`)
32+
}
3033
if (!existsSync(join(__dirname, 'react', version, 'src'))) {
3134
mkdirSync(join(__dirname, 'react', version, 'src'))
3235
}
33-
if (!existsSync(join(__dirname, 'react', version))) {
34-
throw new Error(`getTestDeps.js is missing from react version ${version}'s "test" directory, cannot run tests`)
35-
}
3636
console.log('Copying test files')
3737
tests.forEach((dir, i) => {
3838
if (existsSync(dest[i])) {

0 commit comments

Comments
 (0)