Skip to content

Commit

Permalink
feat: migrate to isomorphic-git instead of spawn (#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
scolladon committed Jan 23, 2024
1 parent eb66cfc commit 2f3e188
Show file tree
Hide file tree
Showing 51 changed files with 2,332 additions and 1,779 deletions.
2 changes: 2 additions & 0 deletions .github/linters/.cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"FORCEINCLUDE",
"FULLNAME",
"Flexi",
"gitdir",
"hardlinks",
"Iframe",
"knip",
Expand Down Expand Up @@ -119,6 +120,7 @@
"quotepath",
"recentsha",
"repogitdiff",
"revparse",
"rulesets",
"samlssoconfig",
"samlssoconfigs",
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -537,9 +537,11 @@ console.log(JSON.stringify(work))
- [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) - Validate XML, Parse XML to JS/JSON and vise versa, or parse XML to Nimn rapidly without C/C++ based libraries and no callback
- [fs-extra](https://github.com/jprichardson/node-fs-extra) - Node.js: extra methods for the fs object like copy(), remove(), mkdirs().
- [ignore](https://github.com/kaelzhang/node-ignore#readme) - is a manager, filter and parser which implemented in pure JavaScript according to the .gitignore spec 2.22.1.
- [isomorphic-git](https://github.com/isomorphic-git/isomorphic-git) - A pure JavaScript implementation of git for node and browsers!
- [lodash](https://github.com/lodash/lodash) - A modern JavaScript utility library delivering modularity, performance & extras.
- [xmlbuilder2](https://github.com/oozcitak/xmlbuilder2) - An XML builder for node.js.
- [MegaLinter](https://megalinter.io) - Open-Source tool for CI/CD workflows that analyzes the consistency of your code, IAC, configuration, and scripts
- [simple-git](https://github.com/steveukx/git-js) - A light weight interface for running git commands in any node.js application.
- [xmlbuilder2](https://github.com/oozcitak/xmlbuilder2) - An XML builder for node.js.
## Versioning
Expand Down
6 changes: 3 additions & 3 deletions __tests__/functional/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const mockValidateConfig = jest.fn()
jest.mock('../../src/utils/cliHelper', () => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const actualModule: any = jest.requireActual('../../src/utils/cliHelper')
return jest.fn().mockImplementation(function () {
return jest.fn().mockImplementation(() => {
return {
...actualModule,
validateConfig: mockValidateConfig,
Expand All @@ -19,7 +19,7 @@ const mockGetLines = jest.fn()
jest.mock('../../src/utils/repoGitDiff', () => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const actualModule: any = jest.requireActual('../../src/utils/repoGitDiff')
return jest.fn().mockImplementation(function () {
return jest.fn().mockImplementation(() => {
return {
...actualModule,
getLines: mockGetLines,
Expand All @@ -33,7 +33,7 @@ jest.mock('../../src/service/diffLineInterpreter', () => {
const actualModule: any = jest.requireActual(
'../../src/service/diffLineInterpreter'
)
return jest.fn().mockImplementation(function () {
return jest.fn().mockImplementation(() => {
return {
...actualModule,
process: mockProcess,
Expand Down
Loading

0 comments on commit 2f3e188

Please sign in to comment.