Merge pull request #10727 from storybookjs/revert-10699-fix/9072-jest-preset-angular-build

Revert "Change reference for jest-preset-angular/build/setupJest as per migration guide"
This commit is contained in:
Michael Shilman 2020-05-12 10:53:41 +08:00 committed by GitHub
commit 3e617e816e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,11 +13,11 @@ function setupAngularJestPreset() {
// 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
// We need to require 'jest-preset-angular/setupJest' before any storybook code
// is running inside jest - one of the things that `jest-preset-angular/setupJest` does is
// extending the `window.Reflect` with all the needed metadata functions, that are required
// for emission of the TS decorations like 'design:paramtypes'
jest.requireActual('jest-preset-angular/build/setupJest');
jest.requireActual('jest-preset-angular/setupJest');
}
function test(options: StoryshotsOptions): boolean {