Skip to content

Commit 40eda5a

Browse files
committed
fix(pnpm): added link, added test
1 parent 5037e72 commit 40eda5a

File tree

2 files changed

+44
-26
lines changed

2 files changed

+44
-26
lines changed

README.md

+27-26
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,33 @@ or installed tools validate.
1313
### Supported Dependencies
1414
Currently Supporting:
1515

16-
| Dependencies | Semantic Versioning |
17-
|--------------------------------|:-------------------:|
18-
| OS X (MacOS) | |
19-
| Node.js | :white_check_mark: |
20-
| npm | :white_check_mark: |
21-
| jx (JXCore) | |
22-
| cordova | |
23-
| appium | |
24-
| ios-deploy | |
25-
| ios-sim | |
26-
| bower | :white_check_mark: |
27-
| ios-webkit-debug-proxy | |
28-
| ideviceinstaller | |
29-
| java | |
30-
| ant | |
31-
| git | |
32-
| gulp-cli | |
33-
| [cocoapods][cocoapods] | |
34-
| xcodebuild | |
35-
| [carthage][carthage] | |
36-
| [xcpretty][xcpretty] | |
16+
| Dependencies | Semantic Versioning |
17+
|--------------------------------------|:-------------------:|
18+
| OS X (MacOS) | |
19+
| Node.js | :white_check_mark: |
20+
| npm | :white_check_mark: |
21+
| jx (JXCore) | |
22+
| cordova | |
23+
| appium | |
24+
| ios-deploy | |
25+
| ios-sim | |
26+
| bower | :white_check_mark: |
27+
| ios-webkit-debug-proxy | |
28+
| ideviceinstaller | |
29+
| java | |
30+
| ant | |
31+
| git | |
32+
| gulp-cli | |
33+
| [cocoapods][cocoapods] | |
34+
| xcodebuild | |
35+
| [carthage][carthage] | |
36+
| [xcpretty][xcpretty] | |
3737
| [libimobiledevice][libimobiledevice] | |
38-
| [deviceconsole][deviceconsole] | |
39-
| [check-engine][check-engine] | |
40-
| [yarn][yarn] | :white_check_mark: |
41-
| [nsp][nsp] | |
42-
| [pnpm](https://pnpm.io/) | :white_check_mark: |
38+
| [deviceconsole][deviceconsole] | |
39+
| [check-engine][check-engine] | |
40+
| [yarn][yarn] | :white_check_mark: |
41+
| [nsp][nsp] | |
42+
| [pnpm][pnpm] | :white_check_mark: |
4343

4444
See the [validatorRules.js file][validator] file for the full list of things that are supported.
4545

@@ -149,3 +149,4 @@ For example usage of this, see [check-engine.js][check-engine-packages].
149149
[check-engine]:https://github.com/mohlsen/check-engine
150150
[yarn]:https://yarnpkg.com/
151151
[nsp]:https://github.com/nodesecurity/nsp
152+
[pnpm]:https://pnpm.io/

lib/validatorRules.spec.js

+17
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,23 @@ test('validatorRules', (t) => {
242242
});
243243
});
244244

245+
246+
247+
t.test('pnpm version', (t) => {
248+
const checkSystem = setupChecker(
249+
{ engines: { "pnpm": "8.6.10" } },
250+
'8.6.10'
251+
);
252+
253+
checkSystem().then((result) => {
254+
t.equal(result.packages[0].name, 'pnpm');
255+
t.equal(result.packages[0].type, 'success');
256+
t.equal(result.packages[0].validatorFound, true);
257+
t.equal(result.packages[0].expectedVersion, result.packages[0].foundVersion);
258+
t.end();
259+
});
260+
});
261+
245262
t.test('node version with wildcard', (t) => {
246263
const checkSystem = setupChecker(
247264
{ engines: { "node": "^6.0.0" } },

0 commit comments

Comments
 (0)