Error: `Cannot destructure property 'access' of 'fs_1.promises' as it is undefined.`
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 5.9k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Hi, after an update of @actions/core from 1.6.0 to 1.7.0, I got an error when trying to run my jest tests.
Happy to provide any more info, just don't know what you'd need. Thanks!
To Reproduce
- Run jest tests including calls to
@actions/core - See them error out, for example here
Expected behavior
No error.
Desktop (please complete the following information):
- OS: Debian testing
- Node 16
- Version 1.7.0 as well as 1.7.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with Jest tests that call @actions/core, comparing versions 1.6.0 and 1.7.0 on Node 16. Trace the fs_1.promises destructuring error in the @actions/core package and verify the fix by rerunning the affected Jest tests without the error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100