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

chore: update dependency fs-teardown to ^0.3.0 #17731

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 8, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
fs-teardown ^0.1.3 -> ^0.3.0 age adoption passing confidence

Release Notes

kettanaito/fs-teardown (fs-teardown)

v0.3.2

Compare Source

v0.3.1

Compare Source

v0.3.0

Compare Source

Breaking changes

  • The createTeardown function now accepts a single argument—the options object with the required rootDir property.
import { createTeardown } from 'fs-teardown'

const api = createTeardown({
  rootDir: 'my-test',
})
  • Use the paths property in the createTeardown options to describe the initial directory structure:
const api = createTeardown({
  rootDir: 'my-test',
  paths: {
    'package.json': JSON.stringify({ name: 'my-test' })
  }
})
  • Relative paths in rootDir are now created against the system's default directory for temporary files (os.tmpdir). Use absolute paths to specify exact directory paths.
  • getPath was replaced with resolve to resemble the fs module:
-api.getPath('file.txt')
+api.resolve('file.txt')
  • The content of the JSON files can no longer be described using objects, it must be a string (use JSON.stringify()).
  • The following functions were removed:
    • addFile
    • addDirectory
  • Use .create() to create new files and directories.

Features

  • Adds .readFile() to get the content of the given file (#​13).
  • Adds .edit() method to emulate reading and writing to the given file.
  • Adds .reset() method to reset the entire file tree to its initial state (described via the paths option on createTeardown).

v0.2.0

Compare Source

Breaking changes

  • The baseDir argument of createTeardown now supports absolute paths (#​4). Relative paths are still resolved against process.cwd() as before.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from a team as a code owner November 8, 2023 19:40
@renovate renovate bot added dependencies Pull requests that update a dependency file deps:npm labels Nov 8, 2023
@eslint-github-bot eslint-github-bot bot added the chore This change is not user-facing label Nov 8, 2023
Copy link

netlify bot commented Nov 8, 2023

Deploy Preview for docs-eslint canceled.

Name Link
🔨 Latest commit e30febf
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/654be42a1663d30008f0d4a6

@nzakas nzakas closed this Nov 9, 2023
Copy link
Contributor Author

renovate bot commented Nov 9, 2023

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (^0.3.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/fs-teardown-0.x branch November 9, 2023 15:57
@eslint-github-bot eslint-github-bot bot locked and limited conversation to collaborators May 8, 2024
@eslint-github-bot eslint-github-bot bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label May 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion chore This change is not user-facing dependencies Pull requests that update a dependency file deps:npm
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

None yet

1 participant