-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Allow for dynamic loading of dependencies not specified in files array #2966
Comments
Reopen if this is not a dup of #2684 |
Is the ES Modules support going to allow files to be requested from Karma's server that are not explicitly listed in the files array? |
Why do you want that feature? Your original post said.... ES modules. |
My original post mentions ES Modules as a means to load dependencies yes, but I also mentioned using |
Ok, I'll reopen even though I don't really agree. Explicit lists help ensure that tests are reproducible. Having a test solution which allows tests to pass if and only if the file system contains some unspecified files means the tests cannot be reproduced. |
As far as I understand it, I have to explicitly define all files in the
files
configuration array before they are allowed to be loaded into the browser...why is this necessary? I'm building a tool on top of karma, so I need to be able to dynamically allow tests to import all of their dependencies. Right now I cannotfetch
or use ES Modules on files that are not explicitly defined in thefiles
array, and I can imagine this becoming very cumbersome as the dependency graph of a file to test could be quite complex, visiting a variety of different paths that I might not know at build time.The text was updated successfully, but these errors were encountered: