Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cypress/angular

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cypress/angular - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

19

dist/index.js

@@ -11,3 +11,3 @@

import { CommonModule } from '@angular/common';
import { Component, EventEmitter, SimpleChange } from '@angular/core';
import { Injectable, Component, EventEmitter, SimpleChange, ErrorHandler } from '@angular/core';
import { getTestBed, TestBed } from '@angular/core/testing';

@@ -99,2 +99,10 @@ import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';

globalThis.it.skip = globalThis.xit;
let CypressAngularErrorHandler = class CypressAngularErrorHandler {
handleError(error) {
throw error;
}
};
CypressAngularErrorHandler = __decorate([
Injectable()
], CypressAngularErrorHandler);
/**

@@ -115,2 +123,11 @@ * Bootstraps the TestModuleMetaData passed to the TestBed

}
if (!testModuleMetaData.providers) {
testModuleMetaData.providers = [];
}
// Replace default error handler since it will swallow uncaught exceptions.
// We want these to be uncaught so Cypress catches it and fails the test
testModuleMetaData.providers.push({
provide: ErrorHandler,
useClass: CypressAngularErrorHandler,
});
// check if the component is a standalone component

@@ -117,0 +134,0 @@ if (component.ɵcmp.standalone) {

2

package.json
{
"name": "@cypress/angular",
"version": "1.1.1",
"version": "1.1.2",
"description": "Test Angular Components using Cypress",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc