Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem testing js modules #810

Open
fsalas opened this issue Mar 14, 2022 · 0 comments
Open

Problem testing js modules #810

fsalas opened this issue Mar 14, 2022 · 0 comments

Comments

@fsalas
Copy link

fsalas commented Mar 14, 2022

First of all, great job with this integration and specially with new web server mode.

I'm having the following issue, and after struggling with it for some days I'm reporting it, I apologize if it is my fault, can certainly be.

I' using jasmine and have some js modules that I want to test, and after testing several configs, using .mjs instead of .js, etc, I didn't manage to get my tests detected in any of the menu options of chutzpah for execute the tests.
When I use Open in browser, the page opens with 0 test, I check the page source, I can see my js with the tests in a normal script tag. If I modify the script tag and changes it with type="module" then the tests are run ok.

My chutzpah.json is a very simple one, I've played with it, with no avail

{
"Framework": "jasmine",
"Server": {
"Enabled": true,
"DefaultPort": 9876,
"RootPath": "../../"
},
"BrowserArguments": {
"chrome": "--allow-file-access-from-files --allow-file-access"
}

}

Thanx in advance and great work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant