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

Web Test Runner TypeError: Failed to fetch dynamically imported module #2869

Open
Tharunkumararela opened this issue Jan 27, 2025 · 0 comments

Comments

@Tharunkumararela
Copy link

Using Angular CLI 17.3.7 version

Steps

Inside the package.json file
"scripts":{
"test:wt": "web-test-runner --config  projects/project1/web-test-runner.config.mjs"

}

Install "@web/test-runner": "0.18.0"

web-test-runner.config.mjs Code
export default{
files:' projects/project1/src/**/*.spec.ts',
nodeResolve:true
};

While running inside the terminal by this command npm run test:wt getting error below.

Browser logs:
TypeError: Failed to fetch dynamically imported module:http://localhost:8000/src/app/test.spec.ts
Could not import your test module . Check the browser logs or open the browser in debug mode
Error while running tests.

I can not get web-test-runner to get work and I am not sure where the fault lies.

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