-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update deps, add more tests, working on getting registry from ya…
…rnrc
- Loading branch information
Showing
117 changed files
with
647 additions
and
439 deletions.
There are no files selected for viewing
Binary file renamed
BIN
+18.5 KB
...stro-npm-1.6.35-75e8e42093-f157157bef.zip → ...stro-npm-1.6.42-d0c9cd4711-4a6f8fe3f6.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-6.03 KB
.yarn/cache/@jest-test-sequencer-npm-29.3.1-9e41fb7e41-a8325b1ea0.zip
Binary file not shown.
Binary file added
BIN
+6.01 KB
.yarn/cache/@jest-test-sequencer-npm-29.4.3-1bf90ec84b-145e1fa937.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+25.2 KB
...mmons-npm-1.8.5-d88c5da4b6-74cb49e2f2.zip → ...mmons-npm-2.0.0-3716f24f20-5023ba17ed.zip
Binary file not shown.
Binary file added
BIN
+19.1 KB
.yarn/cache/@sinonjs-fake-timers-npm-10.0.2-c5fa80f1cc-c62aa98e7c.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+28.2 KB
...lint-npm-8.4.10-9df5f4bc78-21e009ed9e.zip → ...lint-npm-8.21.1-1c50986f9d-584068441e.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+694 KB
...ugin-npm-5.48.1-ea5dbe8a2e-d8d73d123d.zip → ...ugin-npm-5.53.0-d03a63e83a-12dffe6596.zip
Binary file not shown.
Binary file renamed
BIN
+9.84 KB
...rser-npm-5.48.1-e11c82966a-c624d24eb2.zip → ...rser-npm-5.53.0-d59995b611-979e5d6379.zip
Binary file not shown.
Binary file renamed
BIN
+307 KB
...ager-npm-5.48.1-cac4c73878-f60a7efe91.zip → ...ager-npm-5.53.0-c88e2ac828-51f31dc01e.zip
Binary file not shown.
Binary file renamed
BIN
+49.7 KB
...tils-npm-5.48.1-998c0f3ba3-2739b35caf.zip → ...tils-npm-5.53.0-a55ecb8997-52c40967c5.zip
Binary file not shown.
Binary file removed
BIN
-41.9 KB
.yarn/cache/@typescript-eslint-types-npm-5.48.1-f6c112f9dc-8437986e9d.zip
Binary file not shown.
Binary file added
BIN
+42.8 KB
.yarn/cache/@typescript-eslint-types-npm-5.53.0-62dbc6d587-b0eaf23de4.zip
Binary file not shown.
Binary file removed
BIN
-160 KB
.yarn/cache/@typescript-eslint-typescript-estree-npm-5.48.1-3e28a6f3b7-2b26e5848e.zip
Binary file not shown.
Binary file added
BIN
+176 KB
.yarn/cache/@typescript-eslint-typescript-estree-npm-5.53.0-8debdc81ab-6e119c8e41.zip
Binary file not shown.
Binary file renamed
BIN
+174 KB
...tils-npm-5.48.1-5905b23a13-2d112cbb6a.zip → ...tils-npm-5.53.0-be866fe323-18e6bac14a.zip
Binary file not shown.
Binary file renamed
BIN
+11 KB
...keys-npm-5.48.1-60f2bfb2a6-2bda10cf4e.zip → ...keys-npm-5.53.0-893069dcbc-090695883c.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-6.36 KB
.yarn/cache/babel-plugin-jest-hoist-npm-29.2.0-bad358f3a4-368d271cea.zip
Binary file not shown.
Binary file added
BIN
+6.34 KB
.yarn/cache/babel-plugin-jest-hoist-npm-29.4.3-1f8b9befa4-c8702a6db6.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+747 KB
...lint-npm-8.31.0-da99c7e469-5e5688bb86.zip → ...lint-npm-8.34.0-7bd74f3480-4e13e9eb05.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-7.06 KB
.yarn/cache/jest-changed-files-npm-29.2.0-e1a1846230-8ad8290324.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-4.66 KB
.yarn/cache/jest-environment-jsdom-npm-29.3.1-ec5d7007cb-91b04ed02b.zip
Binary file not shown.
Binary file added
BIN
+4.63 KB
.yarn/cache/jest-environment-jsdom-npm-29.4.3-da0584e3c3-3fb29bb4b4.zip
Binary file not shown.
Binary file removed
BIN
-4.45 KB
.yarn/cache/jest-environment-node-npm-29.3.1-3b3592d4d8-16d4854bd2.zip
Binary file not shown.
Binary file added
BIN
+4.49 KB
.yarn/cache/jest-environment-node-npm-29.4.3-97945b9a48-3c7362edfd.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-3.88 KB
.yarn/cache/jest-leak-detector-npm-29.3.1-4354742a8c-0dd8ed31ae.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-4.3 KB
.yarn/cache/jest-resolve-dependencies-npm-29.3.1-89ec333e4d-6ec4727a87.zip
Binary file not shown.
Binary file added
BIN
+4.26 KB
.yarn/cache/jest-resolve-dependencies-npm-29.4.3-fec3ab63f6-3ad934cd21.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+91.5 KB
...ease-npm-20.0.2-1660718752-f9cbd15af1.zip → ...ease-npm-20.1.0-0db27408db-b58215e8b9.zip
Binary file not shown.
Binary file renamed
BIN
+102 KB
...jest-npm-29.0.3-c1e6bc8a8a-541e51776d.zip → ...jest-npm-29.0.5-30e5da5c24-f60f129c22.zip
Binary file not shown.
Binary file renamed
BIN
+11.1 MB
...cript-npm-4.9.4-51bdca3293-e782fb9e00.zip → ...cript-npm-4.9.5-6427b65ee6-ee000bc268.zip
Binary file not shown.
Binary file renamed
BIN
+11.2 MB
...ypescript-patch-c1bb147628-3e2ab07729.zip → ...ypescript-patch-72dc6f164f-ab417a2f39.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import tempy from 'tempy'; | ||
import * as fs from 'fs'; | ||
import { getPackage } from './index'; | ||
|
||
describe('utils', () => { | ||
describe('getPackage', () => { | ||
it('should return the package.json if it exists', async () => { | ||
const cwd = tempy.directory(); | ||
|
||
const mockPackage = { | ||
name: 'mypkg', | ||
version: '1.0.0', | ||
packageManager: 'yarn@3.4.1', | ||
license: 'MIT', | ||
}; | ||
|
||
fs.writeFileSync(`${cwd}/package.json`, JSON.stringify(mockPackage)); | ||
const result = await getPackage(cwd); | ||
|
||
expect(result.name).toEqual(mockPackage.name); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.