Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test won't work with node 20 #1739

Open
devtribe opened this issue Nov 27, 2024 · 1 comment
Open

Test won't work with node 20 #1739

devtribe opened this issue Nov 27, 2024 · 1 comment
Labels
kind/bug Something isn't working stale

Comments

@devtribe
Copy link
Contributor

It seems that the mocking of the filesystem doesn't work

Expected Behavior

Tests run without failure

Current Behavior

A lot of test fail with an error

● roadiehq:utils:fs:write › should put path on the output property
       
           ENOENT: no such file or directory, open '/Users/daniel.kopp/projects/aoe/roadie-backstage-plugins/plugins/scaffolder-actions/scaffolder-backend-module-utils/fake-tmp-dir/fake-file.yaml'

...

 FAIL  src/actions/zip.test.ts
         ● roadiehq:utils:zip › should create a zip file called 'outputPath' from the given 'path'
 InputError: File folder-to-be-zipped does not exist. Can't zip it.

Steps to Reproduce

Change to node 20, run tests from root.

nvm use 20
yrn test:all

Possible Solution

Context

trying to run the test with node 20

Your Environment

  • @backstage/plugin-catalog-react version: 1.12.3
  • @backstage/integration version: 1.14.0
@devtribe devtribe added the kind/bug Something isn't working label Nov 27, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

1 participant