-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: changed to use j.ObjectProperty instead of j.Property
- Loading branch information
1 parent
376d5c3
commit 78c2e35
Showing
4 changed files
with
27 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
import { codemod } from './src/index.js'; | ||
import jscodeshift from 'jscodeshift'; | ||
const { codemod } = require( './src/index.js'); | ||
|
||
console.log( | ||
codemod( | ||
` | ||
const fetchMock = require('fetch-mock'); | ||
jest.mock('node-fetch', () => fetchMock.fetchHandler) | ||
`, | ||
jscodeshift, | ||
), | ||
`const fetchMock = require('fetch-mock'); | ||
fetchMock.get('*', 200, {name: 'rio', sendAsJson: true}); | ||
`), | ||
); |