Skip to content

Commit

Permalink
Fix registry test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Dec 23, 2024
1 parent bc00d9b commit 2696baf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/registry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ describe(regPkgName, { skip: isPackageTestingSkipped(eco, regPkgName) }, () => {
cwd: rootRegistryPath,
ignore: ['**/node_modules']
})
console.log(jsFilepaths)
for (const filepath of jsFilepaths) {
delete require.cache[filepath]
delete require.cache[path.normalize(filepath)]
}
for (const filepath of jsFilepaths) {
require(filepath)
Expand Down

0 comments on commit 2696baf

Please sign in to comment.