remove core-js as a dependency for core

This commit is contained in:
Norbert de Langen 2023-01-30 14:26:12 +01:00
parent d6d92e01e5
commit 19b2f33af7
No known key found for this signature in database
GPG Key ID: FD0E78AF9A837762
4 changed files with 2 additions and 14 deletions

View File

@ -45,7 +45,6 @@
"@storybook/types": "7.0.0-beta.36",
"@types/glob": "^7.1.3",
"@types/jest-specific-snapshot": "^0.5.6",
"core-js": "^3.8.2",
"glob": "^7.1.6",
"jest-specific-snapshot": "^7.0.0",
"preact-render-to-string": "^5.1.19",

View File

@ -1,17 +1,9 @@
import 'core-js';
import 'core-js/es/reflect';
import hasDependency from '../hasDependency';
import configure from '../configure';
import type { Loader } from '../Loader';
import type { StoryshotsOptions } from '../../api/StoryshotsOptions';
function setupAngularJestPreset() {
// Needed to prevent "Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten."
jest.requireActual('core-js');
jest.requireActual('core-js/modules/es.promise');
// jest.requireActual('core-js/es6/reflect');
// jest.requireActual('core-js/es7/reflect');
// Angular + Jest + Storyshots = Crazy Shit:
// We need to require 'jest-preset-angular/build/setupJest' before any storybook code
// is running inside jest - one of the things that `jest-preset-angular/build/setupJest` does is

View File

@ -55,7 +55,6 @@
"@types/react-dom": "^16.9.14",
"@types/semver": "^7.3.4",
"@types/webpack-env": "^1.18.0",
"core-js": "^3.8.2",
"find-up": "^5.0.0",
"read-pkg-up": "^7.0.1",
"semver": "^7.3.7",

View File

@ -5446,7 +5446,6 @@ __metadata:
"@types/glob": ^7.1.3
"@types/jest-specific-snapshot": ^0.5.6
babel-loader: ^9.1.2
core-js: ^3.8.2
enzyme: ^3.11.0
enzyme-adapter-react-16: ^1.15.5
enzyme-to-json: ^3.6.1
@ -5637,7 +5636,6 @@ __metadata:
"@types/semver": ^7.3.4
"@types/tmp": ^0.2.3
"@types/webpack-env": ^1.18.0
core-js: ^3.8.2
cross-spawn: ^7.0.3
find-up: ^5.0.0
jest: ^29.3.1
@ -8099,7 +8097,7 @@ __metadata:
languageName: node
linkType: hard
"@types/istanbul-lib-coverage@npm:*, @types/istanbul-lib-coverage@npm:^2.0.0, @types/istanbul-lib-coverage@npm:^2.0.1":
"@types/istanbul-lib-coverage@npm:^2.0.0, @types/istanbul-lib-coverage@npm:^2.0.1":
version: 2.0.4
resolution: "@types/istanbul-lib-coverage@npm:2.0.4"
checksum: af5f6b64e788331ed3f7b2e2613cb6ca659c58b8500be94bbda8c995ad3da9216c006f1cfe6f66b321c39392b1bda18b16e63cef090a77d24a00b4bd5ba3b018
@ -8244,7 +8242,7 @@ __metadata:
languageName: node
linkType: hard
"@types/minimatch@npm:*, @types/minimatch@npm:^5.1.2":
"@types/minimatch@npm:*":
version: 5.1.2
resolution: "@types/minimatch@npm:5.1.2"
checksum: 83cf1c11748891b714e129de0585af4c55dd4c2cafb1f1d5233d79246e5e1e19d1b5ad9e8db449667b3ffa2b6c80125c429dbee1054e9efb45758dbc4e118562