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

[workspace] Set Jest transformIgnorePatterns to default #3880

Merged
merged 6 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion jest.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export default (projectDir) => {
`<rootDir>/${parentFolder}/*/dist`,
`<rootDir>/${parentFolder}/teraslice-cli/test/fixtures/`
],
transformIgnorePatterns: [],
// do not run transforms on node_modules or pnp files
transformIgnorePatterns: [
godber marked this conversation as resolved.
Show resolved Hide resolved
'/node_modules/',
'\\.pnp\\.[^\\/]+$'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
Expand Down
25 changes: 25 additions & 0 deletions patches/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# README

The `patches` directory is used to store patches made using [patch-package](https://github.com/ds300/patch-package/blob/master/README.md).

## How to make a patch

### Making patches

First make changes to the files of a particular package in your node_modules folder, then run

```bash
yarn patch-package package-name
```

### Nested packages

If you are trying to patch a package at, e.g. node_modules/package/node_modules/another-package you can just put a / between the package names:

```bash
npx patch-package package/another-package
```

### Updating patches

Use exactly the same process as for making patches in the first place, i.e. make more changes, run patch-package, commit the changes to the patch file.
14 changes: 0 additions & 14 deletions patches/npm-run-path++unicorn-magic+0.3.0.patch

This file was deleted.

Loading