Skip to content

Commit

Permalink
Create test directories if they are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Oct 17, 2018
1 parent 83861cb commit 65af5d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/install-test-deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ readdirSync(join(__dirname, 'react')).forEach(version => {
]

if (!existsSync(join(__dirname, 'react', version, 'test'))) {
throw new Error(`react version ${version}'s "test" directory is missing, cannot run tests`)
mkdirSync(join(__dirname, 'react', version, 'test'))
}

if (!existsSync(join(__dirname, 'react', version, 'src'))) {
Expand Down

0 comments on commit 65af5d9

Please sign in to comment.