From 2696bafc2c63b092fa041e5f6be21f22ae94e2bc Mon Sep 17 00:00:00 2001 From: jdalton Date: Mon, 23 Dec 2024 12:27:17 -0500 Subject: [PATCH] Fix registry test on Windows --- test/registry.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/registry.test.ts b/test/registry.test.ts index 36751d15..3d121f4a 100644 --- a/test/registry.test.ts +++ b/test/registry.test.ts @@ -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)