Skip to content

Commit

Permalink
Add CODEOWNERS
Browse files Browse the repository at this point in the history
This adds a basic CODEOWNERS file
  • Loading branch information
beagleknight committed Dec 10, 2024
1 parent fa3a7bd commit adda2e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @factorialco/oss
8 changes: 6 additions & 2 deletions src/plugins/shadowdog-git.test.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand All @@ -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({
Expand Down

0 comments on commit adda2e4

Please sign in to comment.