Update smoke-test

This commit is contained in:
Brian Ng 2017-04-07 14:36:19 -05:00
parent 3c1836ab43
commit b2524770f9

View File

@ -44,15 +44,16 @@ try {
}]
]
}
`
`
);
fs.writeFileSync(
path.join(tempFolderPath, "index.js"),
`
import "babel-polyfill";
1 ** 2;
`
const foo = new Promise((resolve) => {
resolve(new Map());
});
`
);
process.chdir(tempFolderPath);
@ -60,6 +61,7 @@ import "babel-polyfill";
console.log("Running smoke test");
execSync("npm install && npm run build");
} catch (e) {
console.log(e);
errorOccurred = true;
}