This is replacement for local computer testing for testing js-piscine solutions (not made for DOM manipulation).
- Take the tests folder and put it in your piscine folder where you have rest of your js-piscine files.
- Copy files
.gitignore
andtest.mjs
to your piscine folder. - Now write a solution to a new file, for example
pick-omit.js
. - Run
node test.mjs
to test your solution.
That's all that is required. You do not need to write 2 extra arguments. You do not need an external location of your tests folder. You do not need to specify the file or name of exercise you need to be tested.
It automatically tests the last saved .js file in your piscine/current folder. Will add .mjs support soon.
You do not need to go to test folder and run node test.mjs
with 2 arguments.
I made a small youtube video also (sorry for no audio but I hope the video is good enough).
And offcourse, there is a helpful gif also
License belongs to 01-Edu and if they do not have a license file (which I could not find), I assume it is MIT license.
Kindly let me know if I am wrong.