-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TEST: Fix eslint & ban jest globals in non-test files
- Loading branch information
1 parent
7a0d1c0
commit e165330
Showing
5 changed files
with
25 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { ReactElement } from 'react' | ||
import { currentPath } from './jest-mock' | ||
import { testHandle } from './test-handle' | ||
import { ReactElement } from 'react'; | ||
import { currentPath } from './jest-mock'; | ||
import { testHandle } from './test-handle'; | ||
|
||
export function mount(jsx: ReactElement) { | ||
testHandle.register(currentPath(), jsx); | ||
} | ||
|
||
export const screenshot = mount; | ||
export const screenshot = mount; |
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