Skip to content
This repository was archived by the owner on Jun 10, 2022. It is now read-only.

Commit c9f5b4c

Browse files
committed
chore: skip integration tests when not on ci
1 parent 18d672e commit c9f5b4c

8 files changed

+8
-8
lines changed

spec/git/abort-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe("git.abort", function () {
2626
expect(gitCmd.cmd.calls.mostRecent().args[1].filter(i => i)).toEqual(["rebase", "--abort"]);
2727
});
2828

29-
describe("integration tests", function () {
29+
(process.env.CI ? describe : xdescribe)("integration tests", function () {
3030

3131
beforeEach(async function () {
3232
gitCmd.cmd.and.callThrough();

spec/git/add-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe("git.add", function () {
2424
expect(gitCmd.cmd.calls.mostRecent().args[1]).toContain("--verbose");
2525
});
2626

27-
describe("integration tests", function () {
27+
(process.env.CI ? describe : xdescribe)("integration tests", function () {
2828

2929
beforeEach(async function () {
3030
gitCmd.cmd.and.callThrough();

spec/git/init-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe("git.init", function () {
2424
expect(gitCmd.cmd.calls.mostRecent().args[1]).not.toContain("--quiet");
2525
});
2626

27-
describe("integration tests", function () {
27+
(process.env.CI ? describe : xdescribe)("integration tests", function () {
2828

2929
beforeEach(async function () {
3030
gitCmd.cmd.and.callThrough();

spec/git/merge-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe("git.merge", function () {
2626
expect(gitCmd.cmd.calls.mostRecent().args[1]).toContain("--verbose");
2727
});
2828

29-
describe("integration tests", function () {
29+
(process.env.CI ? describe : xdescribe)("integration tests", function () {
3030

3131
beforeEach(async function () {
3232
gitCmd.cmd.and.callThrough();

spec/git/pull-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe("git.pull", function () {
4040
expect(gitCmd.cmd.calls.mostRecent().args[1]).toContain("--verbose");
4141
});
4242

43-
describe("integration tests", function () {
43+
(process.env.CI ? describe : xdescribe)("integration tests", function () {
4444

4545
beforeEach(async function () {
4646
gitCmd.cmd.and.callThrough();

spec/git/push-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe("git.push", function () {
5050
expect(gitCmd.cmd.calls.mostRecent().args[1]).not.toContain("--set-upstream");
5151
});
5252

53-
describe("integration tests", function () {
53+
(process.env.CI ? describe : xdescribe)("integration tests", function () {
5454

5555
beforeEach(async function () {
5656
gitCmd.cmd.and.callThrough();

spec/git/rebase-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe("git.rebase", function () {
2626
expect(gitCmd.cmd.calls.mostRecent().args[1]).toContain("--verbose");
2727
});
2828

29-
describe("integration tests", function () {
29+
(process.env.CI ? describe : xdescribe)("integration tests", function () {
3030

3131
beforeEach(async function () {
3232
gitCmd.cmd.and.callThrough();

spec/git/rootDir-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe("git.rootDir", function () {
3838
expect(root).toEqual("test");
3939
});
4040

41-
describe("integration tests", function () {
41+
(process.env.CI ? describe : xdescribe)("integration tests", function () {
4242

4343
beforeEach(async function () {
4444
gitCmd.cmd.and.callThrough();

0 commit comments

Comments
 (0)