Skip to content

Commit 567c014

Browse files
committed
merge fix
2 parents 55d4190 + 65ae1f3 commit 567c014

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/cli/__tests__/compile-stylex-folder-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,11 @@ describe('CLI works with a custom cache path', () => {
347347
config.cachePath = customCachePath;
348348

349349
beforeEach(async () => {
350-
writeSpy2 = jest.spyOn(cacheModule, 'writeCache');
350+
writeSpy = jest.spyOn(cacheModule, 'writeCache');
351351
});
352352

353353
afterEach(() => {
354-
writeSpy2.mockRestore();
354+
writeSpy.mockRestore();
355355
});
356356

357357
afterAll(async () => {
@@ -399,8 +399,8 @@ describe('CLI works with a custom cache path', () => {
399399
await compileDirectory(config);
400400

401401
// Ensure no additional writes were made due to no file changes
402-
expect(writeSpy2).toHaveBeenCalledTimes(0);
403-
writeSpy2.mockRestore();
402+
expect(writeSpy).toHaveBeenCalledTimes(0);
403+
writeSpy.mockRestore();
404404

405405
const customFilePath = path.join(config.input, 'index.js');
406406

0 commit comments

Comments
 (0)