Skip to content

Commit

Permalink
move validate-package-json.test.ts + add glob devDependency
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Oct 21, 2020
1 parent a4f7d92 commit 9e4b0ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const readFile = util.promisify(fsCb.readFile);
describe('packages', () => {
test('should contain repository and directory for every package', async () => {
const allPackageJson = await glob('packages/*/package.json');
expect(allPackageJson.length).toBeGreaterThan(0);

/* eslint-disable no-await-in-loop,no-restricted-syntax */
for (const packageJson of allPackageJson) {
const content = JSON.parse(await readFile(packageJson, 'utf8'));
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4.0.4",
"glob": "^7.1.6",
"husky": "^4.2.3",
"jest": "^25.2.7",
"lerna": "^3.19.0",
Expand Down

0 comments on commit 9e4b0ea

Please sign in to comment.