You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need test my js scripts. I'd like to use jest (or something similar).
in an alternative folder I could initialize a project with "npm init", install jest (or alternative), add the "test" script. Within this project I would like to be able to import my js file into my test file (example.test.js) and run all my tests at this point.
if this solution is not applicable, I am available to any other solution that allows me to test my js files (with jest or something else).
I tried to implement the above solution, but I don't know how to import the code (I'm using Jint at version 2.11.58).
This discussion was converted from issue #1536 on April 19, 2023 14:54.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I need test my js scripts. I'd like to use jest (or something similar).
in an alternative folder I could initialize a project with "npm init", install jest (or alternative), add the "test" script. Within this project I would like to be able to import my js file into my test file (example.test.js) and run all my tests at this point.
if this solution is not applicable, I am available to any other solution that allows me to test my js files (with jest or something else).
I tried to implement the above solution, but I don't know how to import the code (I'm using Jint at version 2.11.58).
an example of script is:
Beta Was this translation helpful? Give feedback.
All reactions