Closed joshuajaco closed 1 year ago
The culprit is the following: https://github.com/chromaui/test-archiver/blob/da18dd1f81dfd71444daa1d5382b1fd59bcf3ab6/src/write-archive/index.ts#L60-L63
The pathname.endsWith('/')
does not account for this case. I'm not entirely sure how to properly detect it instead.
Also, there is a race condition. The error changes whether the dir or the file was created first.
The error EEXIST: file already exists, mkdir
has the same origin.
@joshuajaco Interesting one, thanks for reporting! We'll take a look this week.
Describe the bug
Trying to open a page that loads a subpath URL results in an error. For example the following page structure is problematic:
/foo
-> HTML that loads/foo/bar.js
/foo/bar.js
-> some javascriptTo Reproduce Steps to reproduce the behavior:
npm run test
Expected behavior It does not throw an error