diff --git a/packages/core-api/package.json b/packages/core-api/package.json index de6a14bb2b..43e721683d 100644 --- a/packages/core-api/package.json +++ b/packages/core-api/package.json @@ -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" diff --git a/packages/core-api/src/setupTests.ts b/packages/core-api/src/setupTests.ts index 825bcd4115..aea2220869 100644 --- a/packages/core-api/src/setupTests.ts +++ b/packages/core-api/src/setupTests.ts @@ -15,3 +15,4 @@ */ import '@testing-library/jest-dom'; +import 'cross-fetch/polyfill'; diff --git a/packages/e2e-test/src/commands/run.ts b/packages/e2e-test/src/commands/run.ts index 5f27176fa8..905cb20d52 100644 --- a/packages/e2e-test/src/commands/run.ts +++ b/packages/e2e-test/src/commands/run.ts @@ -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 }); }