Most simple would be to use a single webpage only for the tests. To do this, you can use Jasmine's standalone SpecRunner, a zero-dependencies test runner in a webpage that has language very similar to Jest.
If you want to test a function or component, you can add the file that contains it as a
script in the SpecRunner's HTML, followed by the spec file that tests it. Jasmine will recognize the tests and then show which passed or failed. It's nice and clean and lets you unit test without having to pull in bulky node/npm environments.
Last modified: 202212100623