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 - autoclosed #12

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Mar 23, 2024

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 added dependencies Pull requests that update a dependency file deps:npm labels Mar 23, 2024
@renovate renovate bot changed the title chore: update dependency fs-teardown to ^0.3.0 chore: update dependency fs-teardown to ^0.3.0 - autoclosed Mar 31, 2024
@renovate renovate bot closed this Mar 31, 2024
@renovate renovate bot deleted the renovate/fs-teardown-0.x branch March 31, 2024 11:38
@renovate renovate bot changed the title chore: update dependency fs-teardown to ^0.3.0 - autoclosed chore: update dependency fs-teardown to ^0.3.0 Apr 1, 2024
@renovate renovate bot reopened this Apr 1, 2024
@renovate renovate bot restored the renovate/fs-teardown-0.x branch April 1, 2024 14:24
@renovate renovate bot force-pushed the renovate/fs-teardown-0.x branch from 08ad57f to c3d9b34 Compare April 1, 2024 14:24
@renovate renovate bot changed the title chore: update dependency fs-teardown to ^0.3.0 chore: update dependency fs-teardown to ^0.3.0 - autoclosed Apr 4, 2024
@renovate renovate bot closed this Apr 4, 2024
@renovate renovate bot deleted the renovate/fs-teardown-0.x branch April 4, 2024 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file deps:npm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants