chore(cli): fixing isome more tests

This commit is contained in:
blam
2020-10-20 11:11:17 +02:00
parent 193652e5a3
commit 37628a03f0
3 changed files with 4 additions and 7 deletions
+2 -1
View File
@@ -48,7 +48,8 @@
"@testing-library/user-event": "^12.0.7",
"@types/jest": "^26.0.7",
"@types/node": "^12.0.0",
"@types/zen-observable": "^0.8.0"
"@types/zen-observable": "^0.8.0",
"cross-fetch": "^3.0.6"
},
"files": [
"dist"
+1
View File
@@ -15,3 +15,4 @@
*/
import '@testing-library/jest-dom';
import 'cross-fetch/polyfill';
+1 -6
View File
@@ -271,12 +271,7 @@ async function createPlugin(
const pluginDir = resolvePath(appDir, 'plugins', canonicalName);
for (const cmd of [
['install'],
['tsc'],
['lint'],
['test', '--no-watch'],
]) {
for (const cmd of [['tsc'], ['lint'], ['test', '--no-watch']]) {
print(`Running 'yarn ${cmd.join(' ')}' in newly created plugin`);
await runPlain(['yarn', ...cmd], { cwd: pluginDir });
}