From adda2e4395bbc7e1539bcfaed18de893ee8fcdf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Morcillo=20Mu=C3=B1oz?= Date: Tue, 10 Dec 2024 13:31:50 +0100 Subject: [PATCH] Add CODEOWNERS This adds a basic CODEOWNERS file --- CODEOWNERS | 1 + src/plugins/shadowdog-git.test.ts | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 CODEOWNERS diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..de6a73f --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1 @@ +* @factorialco/oss \ No newline at end of file diff --git a/src/plugins/shadowdog-git.test.ts b/src/plugins/shadowdog-git.test.ts index 5b32899..80d0b98 100644 --- a/src/plugins/shadowdog-git.test.ts +++ b/src/plugins/shadowdog-git.test.ts @@ -1,5 +1,5 @@ import fs from 'fs-extra' -import { beforeEach, describe, expect, it, vi } from 'vitest' +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' import shadowdogGit from './shadowdog-git' import process from 'process' @@ -8,10 +8,14 @@ describe('shadowdog git', () => { beforeEach(() => { fs.mkdirpSync('tmp/.git') - fs.writeFile('tmp/.git/rebase-merge', 'deadbeef') + fs.writeFileSync('tmp/.git/rebase-merge', 'deadbeef') vi.spyOn(process, 'cwd').mockReturnValue('tmp') }) + afterEach(() => { + fs.rmSync('tmp/.git', { recursive: true }) + }) + describe('when there is a rebase in the current folder', () => { it('does not execute the next middleware', async () => { await shadowdogGit.middleware({