Skip to content

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

@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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy