An open source design system that's fully customizable and agent ready
TypeScript
test(cli): clear the shared linkSync mock so the EPERM publish tests pass in any order (#8011)
Joey3921ae03bdb9
diff --git a/packages/cli/foundation/fs/publish-file-eperm-mutation.test.mjs b/packages/cli/foundation/fs/publish-file-eperm-mutation.test.mjsindex aaf68e34f7..4475cf9c18 100644--- a/packages/cli/foundation/fs/publish-file-eperm-mutation.test.mjs+++ b/packages/cli/foundation/fs/publish-file-eperm-mutation.test.mjs@@ -30,6 +30,8 @@ const fs = await import('node:fs');let tmpDir;beforeEach(() => {+ // One mock serves both tests, so each counts only its own calls, in any order.+ vi.mocked(fs.linkSync).mockClear();tmpDir = realFs.mkdtempSync(path.join(os.tmpdir(), 'astryx-publish-eperm-'));});afterEach(() => {