Skip to content

Commit 013d112

Browse files
committed
📚 Fix broken links
1 parent 4521128 commit 013d112

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

website/docs/consuming.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ title: Consuming
44
slug: /consuming
55
---
66

7-
Running codemods is made simple through our CLI tool, [@codeshift/cli](/docs/api/codeshift-cli).
7+
Running codemods is made simple through our CLI tool, [@codeshift/cli](/docs/cli).
88

99
> @codeshift/cli is responsible for running the provided transform against your entire codebase. Under the hood, it is a wrapper of jscodeshift's cli, which provides additional functionality
1010
11-
For usage please refer to the [@codeshift/cli API reference](/docs/api/codeshift-cli).
11+
For usage please refer to the [@codeshift/cli API reference](/docs/cli).
1212

1313
## How to run Community codemods
1414

@@ -56,4 +56,4 @@ By default `@codemod/cli` will use `babel` as the default parser and only transf
5656

5757
If your repo depends on flow or typescript, it's important to remember to specify `ts`, `tsx` or `flow` as the `--parser` and or `jsx, ts, tsx` as `--extensions` to make sure jscodeshift can interpret the files properly.
5858

59-
Please refer to the [@codeshift/cli API reference](/docs/api/codeshift-cli) for more information.
59+
Please refer to the [@codeshift/cli API reference](/docs/cli) for more information.

website/docs/testing.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ slug: /testing
77
It's very likely that consumers will run into all sorts of edge-cases when running your codemod. That's why it's important to always start by writing tests (TDD style) to assert its behavior.
88
Think about a start and end state. How you might be able to achieve that? What edge-cases can potentially arise?
99

10-
CodeshiftCommunity (and [jscodeshift](https://github.com/facebook/jscodeshift#unit-testing)) exposes [testing utilities](/docs/api/test-utils) to help.
10+
CodeshiftCommunity (and [jscodeshift](https://github.com/facebook/jscodeshift#unit-testing)) exposes [testing utilities](/docs/test-utils) to help.
1111

1212
> Codemods are a textbook example of where TDD works. You have an input file, you run the script and you get output. Thus I would really recommend using TDD for codemod projects.
1313
> Not only does it make codemods more stable, but having projects with test workflow setup, will help you learn.
@@ -53,6 +53,7 @@ it('should remove all deleted props', () => {
5353
5454
const App = () => <Foo isSelected />;"
5555
`);
56+
});
5657
```
5758

5859
Great, but what have we missed? What might go wrong?

0 commit comments

Comments
 (0)