Skip to content

Commit ca1ea09

Browse files
committed
test(rcfile): add reproduction for #327
1 parent 6af7e45 commit ca1ea09

4 files changed

Lines changed: 34 additions & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ jobs:
6868
- name: Lint clippy
6969
run: just check-clippy
7070
- name: Cargo test
71-
run: |
72-
just test
73-
just test-glob-matching
71+
run: just test
72+
# - name: Test issue 327
73+
# run: just test-js-config-loading
74+
- name: Test issue 311 and 319
75+
run: just test-glob-matching
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "js-config-loading",
3+
"description": "",
4+
"version": "0.0.0",
5+
"author": "Jamie Mason <jamie@foldleft.io> (https://github.com/JamieMason)",
6+
"keywords": [],
7+
"license": "MIT"
8+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
semverGroups: [
3+
{
4+
label: "Dependencies should use caret dependency ranges",
5+
dependencies: ["**"],
6+
dependencyTypes: ["dev", "peer", "prod"],
7+
packages: ["**"],
8+
range: "^",
9+
},
10+
],
11+
};

justfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,16 @@ serve-coverage:
156156
test:
157157
cargo test -- --nocapture --color=always
158158

159+
test-js-config-loading:
160+
#!/usr/bin/env bash
161+
set -euo pipefail
162+
cargo build
163+
PROJECT_ROOT=$(pwd)
164+
165+
echo "JS/TS Config should be read without errors"
166+
cd "$PROJECT_ROOT/fixtures/js-config-loading"
167+
../../target/debug/syncpack list
168+
159169
test-glob-matching:
160170
#!/usr/bin/env bash
161171
set -euo pipefail

0 commit comments

Comments
 (0)