Skip to content

Commit

Permalink
fix: add tests for yarn3 (#3324)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Aug 1, 2022
1 parent c1ebd70 commit 3a86e26
Show file tree
Hide file tree
Showing 27 changed files with 21,565 additions and 27 deletions.
14 changes: 11 additions & 3 deletions test-packages/yarn2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,20 @@
"description": "Tests for dictionaries included by a Yarn 2 repository",
"main": "index.js",
"scripts": {
"prepare-cspell-action": "npm run prepare-yarn2-med && npm run prepare-yarn2-sci",
"prepare-cspell-action": "npm run prepare-yarn2 && npm run prepare-yarn3",
"prepare-yarn2": "npm run prepare-yarn2-med && npm run prepare-yarn2-sci",
"prepare-yarn2-med": "cd test-yarn2-med && yarn",
"prepare-yarn2-sci": "cd test-yarn2-sci && yarn",
"test": "npm run test-yarn2-med && npm run test-yarn2-sci",
"prepare-yarn3": "npm run prepare-yarn3-med && npm run prepare-yarn3-sci",
"prepare-yarn3-med": "cd test-yarn3-med && yarn",
"prepare-yarn3-sci": "cd test-yarn3-sci && yarn",
"test": "npm run test-yarn2 && npm run test-yarn3 ",
"test-yarn2": "npm run test-yarn2-med && npm run test-yarn2-sci",
"test-yarn3": "npm run test-yarn3-med && npm run test-yarn3-sci",
"test-yarn2-med": "cd test-yarn2-med && yarn && yarn test",
"test-yarn2-sci": "cd test-yarn2-sci && yarn && yarn test"
"test-yarn2-sci": "cd test-yarn2-sci && yarn && yarn test",
"test-yarn3-med": "cd test-yarn3-med && yarn && yarn test",
"test-yarn3-sci": "cd test-yarn3-sci && yarn && yarn test"
},
"author": "",
"license": "MIT"
Expand Down
4 changes: 2 additions & 2 deletions test-packages/yarn2/test-yarn2-med/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test": "yarn && ../../../bin.js README.md"
},
"devDependencies": {
"@cspell/cspell-types": "^5.5.2",
"@cspell/dict-medicalterms": "^1.0.27"
"@cspell/cspell-types": "^6.5.0",
"@cspell/dict-medicalterms": "^2.0.0"
}
}
20 changes: 10 additions & 10 deletions test-packages/yarn2/test-yarn2-med/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ __metadata:
version: 4
cacheKey: 7

"@cspell/cspell-types@npm:^5.5.2":
version: 5.5.2
resolution: "@cspell/cspell-types@npm:5.5.2"
checksum: 4df4e598f002227cc9597fabe53ec86fd7fec5f47f80941f1b75b2445b4bfa39296168eab66cab86fec3d1b93b69f092a0735ddd8356afba1e4b1adee08b9555
"@cspell/cspell-types@npm:^6.5.0":
version: 6.5.0
resolution: "@cspell/cspell-types@npm:6.5.0"
checksum: 9c01647954bfc33d30b8434be9bffd5e056d4b5769b2a932428693c64726ef3350001df65d4645d9a7232c8d73786b1c4d638a72a7c2150a9a8cb4831a498a8b
languageName: node
linkType: hard

"@cspell/dict-medicalterms@npm:^1.0.27":
version: 1.0.27
resolution: "@cspell/dict-medicalterms@npm:1.0.27"
checksum: 0bfeec3ce8ea295593f42ff4ec0dab0ec92a00b0cd4d2a6ff69312beabd794e74c3c928103ce1113ac37d1468503d118c3ef56b5055183219238fa560ad54646
"@cspell/dict-medicalterms@npm:^2.0.0":
version: 2.0.0
resolution: "@cspell/dict-medicalterms@npm:2.0.0"
checksum: 073c520ba8f578c57fa91d6012349be6f01cd25b274d429f04242b615faa98e44c17d4103879e05f6e66c958ed7ac7418867331f5d5ce5899ac9737f8619974b
languageName: node
linkType: hard

"test-yarn2-med@workspace:.":
version: 0.0.0-use.local
resolution: "test-yarn2-med@workspace:."
dependencies:
"@cspell/cspell-types": ^5.5.2
"@cspell/dict-medicalterms": ^1.0.27
"@cspell/cspell-types": ^6.5.0
"@cspell/dict-medicalterms": ^2.0.0
languageName: unknown
linkType: soft
4 changes: 2 additions & 2 deletions test-packages/yarn2/test-yarn2-sci/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"test": "yarn && ../../../bin.js README.md"
},
"devDependencies": {
"@cspell/cspell-types": "^5.5.2"
"@cspell/cspell-types": "^6.5.0"
},
"dependencies": {
"@cspell/dict-scientific-terms-us": "^1.0.21"
"@cspell/dict-scientific-terms-us": "^2.0.0"
}
}
20 changes: 10 additions & 10 deletions test-packages/yarn2/test-yarn2-sci/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ __metadata:
version: 4
cacheKey: 7

"@cspell/cspell-types@npm:^5.5.2":
version: 5.5.2
resolution: "@cspell/cspell-types@npm:5.5.2"
checksum: 4df4e598f002227cc9597fabe53ec86fd7fec5f47f80941f1b75b2445b4bfa39296168eab66cab86fec3d1b93b69f092a0735ddd8356afba1e4b1adee08b9555
"@cspell/cspell-types@npm:^6.5.0":
version: 6.5.0
resolution: "@cspell/cspell-types@npm:6.5.0"
checksum: 9c01647954bfc33d30b8434be9bffd5e056d4b5769b2a932428693c64726ef3350001df65d4645d9a7232c8d73786b1c4d638a72a7c2150a9a8cb4831a498a8b
languageName: node
linkType: hard

"@cspell/dict-scientific-terms-us@npm:^1.0.21":
version: 1.0.21
resolution: "@cspell/dict-scientific-terms-us@npm:1.0.21"
checksum: 748d70cbde0b9dc23f5c035dabdd51200dcd3dcd5b54032a80516959def0b691ef94ba1eea9f27a2c22046009e89989c06faf307d68c44de732ef64daf54b7b6
"@cspell/dict-scientific-terms-us@npm:^2.0.0":
version: 2.0.0
resolution: "@cspell/dict-scientific-terms-us@npm:2.0.0"
checksum: c80ea7446aacbe748c2ea54274d2c85d8827302c18f78a663ce436cb360e6965400e606e19436bb205a7d64540c4dcf84309ea6ca4407f38f41a6ac5dd576b8a
languageName: node
linkType: hard

"test-yarn2-sci@workspace:.":
version: 0.0.0-use.local
resolution: "test-yarn2-sci@workspace:."
dependencies:
"@cspell/cspell-types": ^5.5.2
"@cspell/dict-scientific-terms-us": ^1.0.21
"@cspell/cspell-types": ^6.5.0
"@cspell/dict-scientific-terms-us": ^2.0.0
languageName: unknown
linkType: soft
4 changes: 4 additions & 0 deletions test-packages/yarn2/test-yarn3-med/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ingore .yarn zero install because this is just a test package.
.yarn/cache
install-state.gz
.pnp.js
Loading

0 comments on commit 3a86e26

Please sign in to comment.