-
Notifications
You must be signed in to change notification settings - Fork 26
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
Ignore ignoreCallsFromThisFile
does not work properly v0.7.0
#99
Comments
thanks for the detailed bug report. Do you mind taking a stab at a PR to fix this with a regression test that reproduces the problem in Windows for you? |
I once tried to set up a test case to reproduce it and realized that it must be because I'm using my own I don't think it would be an issue in this particular case that needs to be fixed.
Maybe I'm wrong in assuming because I can't reproduce the problem in a simplified way on the fly, I'm not 100 percent sure. In my ESM project, the quibble-esm-loader(build-utils), quibble and quibble-wrapper(test-utils) and my test file (test-package) are housed in separate packages. I would have to set up a test project to analyze the problem in more detail, which I haven't done yet. |
Tagging in @giltayar if he can makes sense of this! I still have yet to use td.js with ESM for anything but toy apps 🙇♂️ |
Not sure we need a reproduction. @dmtr-kr is right in that when comparing the ignored files and the files in the stack, we're not removing the search part of the url. Moreover, we may be comparing apples and oranges, e.g. file urls to file paths. Interesting that no tests caught this! Or maybe it isn't a real problem and manifests itself in edge cases? Not sure. I'll look into it this week and get back to you. |
Ignore
ignoreCallsFromThisFile
does not work properlyAfter upgrading to version 0.7.0, my tests stopped working. It looks like the paths are not correct.
Actually the file path which executes the call
ignoreCallsFromThisFile()
should be ignored but it works.What happens:
ignoreCallsFromThisFile()
ignoredCallerFiles
is created:If the paths of the files to be ignored in the stack match, they are discarded.
The Bug: It doesn't work because the file URLs in the stack end with a postfix (?__quibble.js=0) and the postfix is missing in the
ignoredCallerFiles
list.If I add the postfix to the original path/URL in the
ignoredCallerFiles
list:before:
file:////C:/repos/test/src/quibble-wrapper.js
after:
file:////C:/repos/test/src/quibble-wrapper.js?__quibble.js=0
does ignoring the quibble-wrapper.js file work and the tests pass.
The text was updated successfully, but these errors were encountered: