Skip to content

Commit 8ac998c

Browse files
authored
Merge pull request #1159 from steveukx/chore/split-consumer-tests
Split package and consumer tests
2 parents 01bb7ce + 7ed2389 commit 8ac998c

7 files changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ jobs:
2424
cache: yarn
2525
- run: yarn install --immutable
2626
- run: yarn build
27-
- run: yarn build:pkg
2827
- name: Test
2928
env:
3029
GIT_AUTHOR_NAME: 'Simple Git Tests'
3130
GIT_AUTHOR_EMAIL: 'tests@simple-git.dev'
3231
run: yarn test
32+
- run: yarn build:pkg
33+
- run: yarn test:consumer
3334

3435
build-windows:
3536
runs-on: windows-latest

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"lint": "biome check",
2020
"lint:fix": "biome check --write",
2121
"test": "yarn workspaces foreach -A run test",
22+
"test:consumer": "yarn workspaces foreach -A run test:consumer",
2223
"test:win": "yarn workspaces foreach -A run test:win"
2324
},
2425
"dependencies": {

packages/test-es-module-consumer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "1.0.1",
55
"type": "module",
66
"scripts": {
7-
"test": "node test.mjs"
7+
"test:consumer": "node test.mjs"
88
},
99
"dependencies": {
1010
"simple-git": "*"

packages/test-javascript-consumer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"version": "1.0.1",
55
"scripts": {
6-
"test": "node test.js && node test-default.js"
6+
"test:consumer": "node test.js && node test-default.js"
77
},
88
"dependencies": {
99
"simple-git": "*"

packages/test-typescript-consumer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
]
1212
},
1313
"scripts": {
14-
"test": "yarn test:types && yarn test:jest",
14+
"test:consumer": "yarn test:types && yarn test:jest",
1515
"test:types": "tsc",
1616
"test:jest": "jest"
1717
},

packages/test-typescript-esm-consumer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
]
1212
},
1313
"scripts": {
14-
"test": "jest"
14+
"test:consumer": "jest"
1515
},
1616
"dependencies": {
1717
"@simple-git/babel-config": "*",

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3522,12 +3522,12 @@ __metadata:
35223522
linkType: hard
35233523

35243524
"brace-expansion@npm:^1.1.7":
3525-
version: 1.1.13
3526-
resolution: "brace-expansion@npm:1.1.13"
3525+
version: 1.1.14
3526+
resolution: "brace-expansion@npm:1.1.14"
35273527
dependencies:
35283528
balanced-match: "npm:^1.0.0"
35293529
concat-map: "npm:0.0.1"
3530-
checksum: 10/b5f4329fdbe9d2e25fa250c8f866ebd054ba946179426e99b86dcccddabdb1d481f0e40ee5430032e62a7d0a6c2837605ace6783d015aa1d65d85ca72154d936
3530+
checksum: 10/2de747a5891ea0d3a1946ea1ae26e056a47f7ea8d42a3009e1736ec3a31a5aa69a3c5da59d998426773553afe4c258e5b12d7953b534fa7f2cf12ce92eed4931
35313531
languageName: node
35323532
linkType: hard
35333533

0 commit comments

Comments
 (0)