-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get rid of about half the type errors
- Loading branch information
1 parent
9986639
commit 7bad187
Showing
5 changed files
with
300 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
const {createMacro} = require('../../..') | ||
import {createMacro} from '../../..' | ||
|
||
const configName = 'configurableMacro' | ||
const realMacro = jest.fn() | ||
module.exports = createMacro(realMacro, {configName}) | ||
// for testing purposes only | ||
Object.assign(module.exports, { | ||
realMacro, | ||
configName, | ||
}) | ||
// exports for testing purposes only | ||
export const configName = 'configurableMacro' | ||
export const realMacro = jest.fn() | ||
|
||
export default createMacro(realMacro, ({configName} = {})) |
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
Oops, something went wrong.