Skip to content

Commit 75d8ab7

Browse files
committed
Add lab 3 bootstrapping
1 parent 17b93ed commit 75d8ab7

File tree

27 files changed

+690
-18
lines changed

27 files changed

+690
-18
lines changed

__fixtures__/fs.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { jest } from '@jest/globals'
2+
3+
export const readFileSync = jest.fn().mockImplementation(() => {
4+
return 'Some content'
5+
})
6+
export const writeFileSync = jest.fn()
7+
8+
export default {
9+
readFileSync,
10+
writeFileSync
11+
}

__tests__/github/repos.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { jest } from '@jest/globals'
22
import * as core from '../../__fixtures__/core.js'
33
import * as exec from '../../__fixtures__/exec.js'
4+
import * as fs from '../../__fixtures__/fs.js'
45
import * as github from '../../__fixtures__/github.js'
56
import * as octokit from '../../__fixtures__/octokit.js'
67
import { AllowedIssueAction } from '../../src/enums.js'
@@ -19,6 +20,7 @@ jest.unstable_mockModule('@octokit/rest', async () => {
1920
Octokit
2021
}
2122
})
23+
jest.unstable_mockModule('fs', () => fs)
2224

2325
const teams_getMembers: jest.SpiedFunction<
2426
typeof import('../../src/github/teams.js').getMembers

badges/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

dist/github/repos.d.ts

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 29 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lab-files/1-add-a-feature/.gitkeep

Whitespace-only changes.

lab-files/10-create-a-release/.gitkeep

Whitespace-only changes.

lab-files/11-deploy-to-an-environment/.gitkeep

Whitespace-only changes.

lab-files/2-add-tags/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)