Closed
Description
Suggestion
mkdir packages/gotcha
yarn test-integration
$ yarn test-integration
yarn run v1.22.19
$ yarn jest -c ./tests/integration/jest.config.js
$ /Users/josh/repos/typescript-eslint/node_modules/.bin/jest -c ./tests/integration/jest.config.js
Error: Cannot find module '/Users/josh/repos/typescript-eslint/packages/gotcha/package.json'
Require stack:
- /Users/josh/repos/typescript-eslint/tests/integration/pack-packages.ts
- /Users/josh/repos/typescript-eslint/tests/integration/jest.config.js
- ...
This is because pack-packages.ts
attempts to require the package.json
in each packages/*
directory. If the directory is blank, such as from switching between branches that CRUD package names, it throws.