refactor: remove unnecessary variable assignment

This commit is contained in:
Marcin Wiśniowski 2025-02-15 17:23:30 +01:00
parent c2c3b1d91b
commit cbcc65c0b6

View file

@ -64,8 +64,8 @@ window.playwrightMount = async (component, rootElement, hooksConfig) => {
if (!isObjectComponent(component))
throw new Error('JSX mount notation is not supported');
const objectComponent = component;
const componentCtor = asClassComponent(component.type);
class App extends componentCtor {
constructor(options = {}) {
if (!isObjectComponent(component))