Skip to content

Category: Questions

Unable to run JEST test

I’m facing an issue when I try to import something using require() function in jest test file. script2.test.js Package.json babel.config.cjs I’m getting following errors when I run the test using npm test I’m new to JEST, any help is much appreciated. My Node version is 14.17.3 Thanks you. A…

Vuex | Be able to update outside of a mutation

I am trying to update a state of a action which is controlled through Vuex. I know initially, I am unable to update the state of the action without doing it directly through a mutation. However, I didn’t really want to do that as I am trying to use it in a callback. So I attempted to clone this array

Split String and insert it in different input

can you please help me how to split a string in an input and insert those split strings into different inputs? I already tried some codes that I found here but it still didn’t work. I actually want to store the string in that 2 different inputs (those not hidden) after exectuting the functions This is t…

Could not import js file into component.ts

Hello I developped an angular 12 app. I imported js to each component in the previous app on angular 9 like this : js file: component.ts file: and it worked very well but in the angular 12 app it doesn’t anymore and returns me this error: Could not find a declaration file for module ‘src/assets/js…

firestore filter range date

Why when I do this filter it returns all records from my database? What I need is that it returns only records within the range of the two dates. async function toFind() { console.log(“start”…