Skip to content

Commit 77bfa95

Browse files
authored
build(devs-infra): configure CI and doc to point to main (#996)
1 parent 96212bf commit 77bfa95

File tree

11 files changed

+18
-18
lines changed

11 files changed

+18
-18
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- First of all, check the troubleshooting section for common issues at:
2-
https://github.com/thymikee/jest-preset-angular/blob/master/README.md#troubleshooting -->
2+
https://github.com/thymikee/jest-preset-angular/blob/main/README.md#troubleshooting -->
33

44
## 👉 [Please follow one of these issue templates](https://github.com/thymikee/jest-preset-angular/issues/new/choose) 👈
55

.github/workflows/doc-generator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: doc-generator
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [main]
66
pull_request:
77
branches:
88
- '**'

.github/workflows/nodejs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Node CI
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request:
88
branches:
99
- '**'
@@ -15,7 +15,7 @@ jobs:
1515
- uses: rokroskar/workflow-run-cleanup-action@master
1616
env:
1717
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18-
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"
18+
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'"
1919

2020
prepare-yarn-cache:
2121
name: Prepare yarn cache

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<p align="center">A preset of Jest configuration for Angular projects.</p>
44

55
<p align="center">
6-
<a href="https://actions-badge.atrox.dev/thymikee/jest-preset-angular/goto?ref=master"><img alt="Build Status" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fthymikee%2Fjest-preset-angular%2Fbadge%3Fref%3Dmaster&style=flat-square" /></a>
6+
<a href="https://actions-badge.atrox.dev/thymikee/jest-preset-angular/goto?ref=main"><img alt="Build Status" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fthymikee%2Fjest-preset-angular%2Fbadge%3Fref%3Dmain&style=flat-square" /></a>
77
<a href="https://www.npmjs.com/package/jest-preset-angular"><img src="https://img.shields.io/npm/v/jest-preset-angular/latest.svg?style=flat-square" alt="NPM Version" /></a>
8-
<a href="https://github.com/thymikee/jest-preset-angular/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/jest-preset-angular.svg?style=flat-square" alt="GitHub license" /></a>
8+
<a href="https://github.com/thymikee/jest-preset-angular/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/jest-preset-angular.svg?style=flat-square" alt="GitHub license" /></a>
99
</p>
1010

1111
This is a part of the article: [Testing Angular faster with Jest](https://www.xfive.co/blog/testing-angular-faster-jest/).
@@ -77,7 +77,7 @@ Check out our [Angular Ivy guidance](https://thymikee.github.io/jest-preset-angu
7777

7878
## Example apps
7979

80-
We have [example apps](https://github.com/thymikee/jest-preset-angular/tree/master/examples) to provide a basic setup to use Jest in an Angular project.
80+
We have [example apps](https://github.com/thymikee/jest-preset-angular/tree/main/examples) to provide a basic setup to use Jest in an Angular project.
8181

8282
## Built With
8383

website/docs/getting-started/test-environment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ id: test-environment
33
title: Test environment
44
---
55

6-
If you look at [`setup-jest.ts`](https://github.com/thymikee/jest-preset-angular/blob/master/src/config/setup-jest.ts),
7-
what we're doing here is we're adding globals required by Angular. With the included [jest-zone-patch](https://github.com/thymikee/jest-preset-angular/tree/master/src/zone-patch)
6+
If you look at [`setup-jest.ts`](https://github.com/thymikee/jest-preset-angular/blob/main/src/config/setup-jest.ts),
7+
what we're doing here is we're adding globals required by Angular. With the included [jest-zone-patch](https://github.com/thymikee/jest-preset-angular/tree/main/src/zone-patch)
88
we also make sure Jest test methods run in Zone context. Then we initialize the Angular testing environment like normal.

website/docs/guides/jsdom-version.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ package, e.g. `jest-environment-jsdom-sixteen` and edit your Jest config like so
1616

1717
If you use JSDOM v11 or lower, you might have to mock `localStorage` or `sessionStorage` on your own or using some third-party library by loading it in `setupFilesAfterEnv`.
1818

19-
Reference: https://jestjs.io/docs/en/configuration.html#testenvironment-string, https://github.com/jsdom/jsdom/blob/master/Changelog.md#1200
19+
Reference: https://jestjs.io/docs/en/configuration.html#testenvironment-string, https://github.com/jsdom/jsdom/blob/main/Changelog.md#1200

website/docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ module.exports = {
8181
{
8282
docs: {
8383
sidebarPath: require.resolve('./sidebars.js'),
84-
editUrl: 'https://github.com/thymikee/jest-preset-angular/edit/master/website',
84+
editUrl: 'https://github.com/thymikee/jest-preset-angular/edit/main/website',
8585
},
8686
theme: {
8787
customCss: require.resolve('./src/css/custom.css'),

website/src/pages/versions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function Version() {
3636
<Link to={nextVersion.path}>Documentation</Link>
3737
</td>
3838
<td>
39-
<a href={`${repoUrl}/blob/master/CHANGELOG.md`}>Release Notes</a>
39+
<a href={`${repoUrl}/blob/main/CHANGELOG.md`}>Release Notes</a>
4040
</td>
4141
</tr>
4242
</tbody>
@@ -55,7 +55,7 @@ function Version() {
5555
<Link to={latestVersion.path}>Documentation</Link>
5656
</td>
5757
<td>
58-
<a href={`${repoUrl}/blob/master/CHANGELOG.md`}>Release Notes</a>
58+
<a href={`${repoUrl}/blob/main/CHANGELOG.md`}>Release Notes</a>
5959
</td>
6060
</tr>
6161
</tbody>
@@ -75,7 +75,7 @@ function Version() {
7575
<Link to={version.path}>Documentation</Link>
7676
</td>
7777
<td>
78-
<a href={`${repoUrl}/blob/master/CHANGELOG.md`}>Release Notes</a>
78+
<a href={`${repoUrl}/blob/main/CHANGELOG.md`}>Release Notes</a>
7979
</td>
8080
</tr>
8181
))}

website/versioned_docs/version-8.x/guides/jsdom-version.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ package, e.g. `jest-environment-jsdom-sixteen` and edit your Jest config like so
1616

1717
If you use JSDOM v11 or lower, you might have to mock `localStorage` or `sessionStorage` on your own or using some third-party library by loading it in `setupFilesAfterEnv`.
1818

19-
Reference: https://jestjs.io/docs/en/configuration.html#testenvironment-string, https://github.com/jsdom/jsdom/blob/master/Changelog.md#1200
19+
Reference: https://jestjs.io/docs/en/configuration.html#testenvironment-string, https://github.com/jsdom/jsdom/blob/main/Changelog.md#1200

website/versioned_docs/version-9.x/getting-started/test-environment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ id: test-environment
33
title: Test environment
44
---
55

6-
If you look at [`setup-jest.ts`](https://github.com/thymikee/jest-preset-angular/blob/master/src/config/setup-jest.ts),
7-
what we're doing here is we're adding globals required by Angular. With the included [jest-zone-patch](https://github.com/thymikee/jest-preset-angular/tree/master/src/zone-patch)
6+
If you look at [`setup-jest.ts`](https://github.com/thymikee/jest-preset-angular/blob/main/src/config/setup-jest.ts),
7+
what we're doing here is we're adding globals required by Angular. With the included [jest-zone-patch](https://github.com/thymikee/jest-preset-angular/tree/main/src/zone-patch)
88
we also make sure Jest test methods run in Zone context. Then we initialize the Angular testing environment like normal.

0 commit comments

Comments
 (0)