Unable to access property 'runnable' of null while running Jest test

After creating a new .spec file, I encountered an issue where the tests inside it are failing with the following error:

    TypeError: Cannot read property 'runnable' of null

      at ret (node_modules/selenium-webdriver/testing/index.js:175:25)
      at ZoneDelegate.Object.<anonymous>.ZoneDelegate.invoke (node_modules/zone.js/dist/zone.js:388:26)
      at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (node_modules/zone.js/dist/proxy.js:128:39)
      at ZoneDelegate.Object.<anonymous>.ZoneDelegate.invoke (node_modules/zone.js/dist/zone.js:387:32)
      at Zone.Object.<anonymous>.Zone.run (node_modules/zone.js/dist/zone.js:138:43)
      at Object.testBody.length.done (node_modules/jest-zone-patch/index.js:51:29)

This issue seems unfamiliar to me and even Google has not provided any solutions yet. Can anyone help identify what might be causing this problem?

Answer №1

During the process of creating a minimal reproduction example to address this inquiry, I came across a questionable import:

import { beforeEach } from 'selenium-webdriver/testing';

This import was automatically added by my development environment and unfortunately led to the problem at hand. Simply removing it resolves the issue :)

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Error occurs when a class contains a static member with the name `name`

Within my TypeScript code, I have a simple class named Foo as part of the Test module. module Test { "use strict"; class Foo { public static name = "foo"; } } However, when I attempt to run this code in Chrome, an error occurs: I ...

The function server.close is not executable

Currently, I am facing an issue with my Jest and supertest setup for testing. I am attempting to close the server after the tests are completed, but it is throwing an error stating that server.close() is not a function. I am unsure if the problem lies with ...

Is there a way to input text into a web element with the same attribute using Java webdriver?

Is there a way to input text into multiple web elements with the same attribute using WebDriver in JAVA? For instance: Let's say there are six text boxes for contact names, all of which are mandatory fields (such as contact name1, contact name2, etc ...

What is the rationale behind Angular's decision to use cdr.markForCheck() instead of cdr.detectChanges() in the async

Regarding Angular, I have a question: Why does the Angular async pipe use cdr.markForCheck() instead of cdr.detectChanges()? I have noticed two main differences between these two approaches: markForCheck() marks the path all the way up to the root compo ...

Troubleshooting NGINX and NodeJS (Docker) issue on Synology Server

I've set up a docker-compose file that does the following: Starts Postgres DB Builds and starts NestJS (NodeJS) backend on localhost:3000 Builds and starts an Angular app on localhost:4200 inside of an NGINX container After following these instructi ...

Numerous unspecified generic arguments

Imagine a collection of functions, each capable of taking an argument and returning a value (the specifics don't matter): function convertToNumber(input: string): number { return parseInt(input) } function convertToBoolean(input: number): boolean { ...

Tips for speeding up scraping time with Requests-HTML

Currently, I am working on a project that involves scraping the ratings of all articles from the website . To achieve this, I am utilizing Requests-HTML version 0.10.0 and Selenium 3.141.0. The website contains 53 pages with 50 articles per page. Initially ...

NGRX Store: Unable to modify the immutable property '18' of the object '[object Array]'

While attempting to set up an ngrx store, I encountered 7 errors. Error Messages: TypeError: Cannot assign to read only property '18' of object '[object Array]' | TypeError: Cannot assign to read only property 'incompleteFirstPass ...

Error encountered when attempting to locate the file declaration for module 'jwt-decode'

Currently, I am utilizing the Visual Studio 2017 template for my Angular project and encountering an issue when attempting to import the 'jwt-decode' module after adding it to package.json. The error (mentioned in the title of my post) arises aft ...

Executing a function in the Angular 5 template based on the results of an observable leads to multiple function calls

Custom HTML Template <div *ngFor="let element of convertObjectToArray(observerable_value)"> {{element.name}} </div> Custom Component convertObjectToArray(obj) { const arr = Object.values(obj); return arr; } Seeking Solution I ...

Unable to iterate through elements when utilizing an external library: Incompatible types, 'Element[]' cannot be assigned to type 'string'

I've encountered an issue while trying to use the react-responsive carousel. It seems to work fine when I manually add my images, but when I try to add them through photos.map, it throws an error: Type 'Element[]' is not assignable to type ...

Issue with NgRx Testing: Callback in subscribe method fails to update during testing

I am currently working on testing a component that is responsible for editing shopping list items. Upon first loading, the component receives state values through store.select, which are: editedIngredient: null, editedIngredientIndex: -1 Based on these ...

I need help figuring out how to choose an option from a drop-down menu that has a dynamically changing id every

When using Selenium Webdriver, I am trying to select the "802.11n" option from a drop-down menu where the "sbSelector_xxx" id changes each time the page is reloaded. <div id="RADIO_5GHz_adv" style="display: block;"> <table class="block" border="0 ...

Modify the MUI time picker to display as a digital clock inside a DateTimePicker widget

I need to update my MUI DateTimePicker component to use the DigitalClock time picker instead of the Analog Clock picker. The current component has two steps, first picking the date from a calendar and then selecting the time. This change is only necessary ...

Make multiple calls to gapi.auth2.init using varying client_id each time

I am currently working on a single web page (Angular 6 app) where an admin user can create different Google accounts. In order to obtain a backoffice code with grantOfflineAccess, I am utilizing gapi. However, there seems to be an issue when trying to set ...

Tips for adjusting fullcalendar's local property in an Angular application

I'm having trouble changing the local property of fullcalendar. I've tried setting it to "en-gb", but it's not working. Can you help me figure out what I'm doing wrong? <full-calendar #calendar defaultView="dayGridMonth" [header]="{ ...

The typical toggle function may not function efficiently in conjunction with the setState() method

In my current project, I have a state that defines an interface like this: MyState { variableOne: string; variableTwo: boolean; variableThree: boolean; // ... } There's also a toggle function in the code: toggleFunction = (value: keyof MyS ...

Send information to the Ionic 2 menu

In my app.html file, I have created a menu as shown below: <ion-menu [content]="mycontent"> <ion-toolbar class="menuUserName"> <ion-title>{{userName}}</ion-title> </ion-toolbar> <ion-content> <ion-list& ...

At what point should you unsubscribe from an observable within an Angular component?

As I integrate ngrx with Angular, suppose I retrieve data from a selector in a component and store it in a variable. In the ngOnDestroy lifecycle hook, should I manually unsubscribe using the unsubscribe method, or does the ngrx select method handle it a ...

Round off Kendo Column Chart edges and add a personalized highlight shade

https://i.sstatic.net/RpHnR.png Is there a way to create a kendo column chart with rounded borders similar to the image provided? Below is the code snippet I am currently using. Additionally, how can I customize the hover-over color for the columns in the ...