Skip to content

Commit 8a72ff2

Browse files
committed
fixup! module: fix directory option in the enableCompileCache() API
1 parent 39325cf commit 8a72ff2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-compile-cache-api-options-portable-env.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ spawnSyncAndAssert(
4040
console.log(output); // Logging for debugging.
4141
assert.match(output, /dir before enableCompileCache: undefined/);
4242
assert.match(output, /Compile cache enabled/);
43-
assert.match(output, /dir after enableCompileCache: .*build\/\.compile_cache/);
43+
assert.match(output, /dir after enableCompileCache: .*build[/\\]\.compile_cache/);
4444
return true;
4545
},
4646
stderr(output) {
4747
console.log(output); // Logging for debugging.
48-
assert.match(output, /reading cache from .*build\/\.compile_cache.* for CommonJS .*empty\.js/);
48+
assert.match(output, /reading cache from .*build[/\\]\.compile_cache.* for CommonJS .*empty\.js/);
4949
assert.match(output, /empty\.js was not initialized, initializing the in-memory entry/);
5050
assert.match(output, /writing cache for .*empty\.js.*success/);
5151
return true;
@@ -76,12 +76,12 @@ spawnSyncAndAssert(
7676
console.log(output); // Logging for debugging.
7777
assert.match(output, /dir before enableCompileCache: undefined/);
7878
assert.match(output, /Compile cache enabled/);
79-
assert.match(output, /dir after enableCompileCache: .*build_moved\/\.compile_cache/);
79+
assert.match(output, /dir after enableCompileCache: .*build_moved[/\\]\.compile_cache/);
8080
return true;
8181
},
8282
stderr(output) {
8383
console.log(output); // Logging for debugging.
84-
assert.match(output, /reading cache from .*build_moved\/\.compile_cache.* for CommonJS .*empty\.js/);
84+
assert.match(output, /reading cache from .*build_moved[/\\]\.compile_cache.* for CommonJS .*empty\.js/);
8585
assert.match(output, /cache for .*empty\.js was accepted, keeping the in-memory entry/);
8686
assert.match(output, /.*skip .*empty\.js because cache was the same/);
8787
return true;

0 commit comments

Comments
 (0)