Skip to content

Repo: integration tests fail on an empty package directory #6453

Closed
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

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.

Metadata

Metadata

Labels

accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workingrepo maintenancethings to do with maintenance of the repo, and not with code/docs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions