Merge pull request #1806 from strapi/fix-test-launch-jsdom

Fix JSDOM jest tests
This commit is contained in:
Jim LAURIE 2018-08-26 17:15:01 +02:00 committed by GitHub
commit 9e63da5edf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,8 @@ const main = async () => {
return new Promise(async (resolve) => {
// Run setup tests to generate the app.
await jest({
passWithNoTests: true
passWithNoTests: true,
testURL: 'http://localhost/'
}, [process.cwd()]);
const packages = fs.readdirSync(path.resolve(process.cwd(), 'packages'))
@ -84,6 +85,7 @@ const main = async () => {
for (let i in packages) {
await jest({
passWithNoTests: true,
testURL: 'http://localhost/'
}, [`${process.cwd()}/packages/${packages[i]}`]);
}