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
chore: migrate to named exports from rules #363
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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,4 +1,4 @@ | ||
import matcher from './'; | ||
import * as matcher from './'; | ||
|
||
expect.extend(matcher); | ||
|
||
|
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,131 +1,64 @@ | ||
import failMatcher from './fail'; | ||
import passMatcher from './pass'; | ||
import toBeAfterMatcher from './toBeAfter'; | ||
import toBeArrayMatcher from './toBeArray'; | ||
import toBeArrayOfSizeMatcher from './toBeArrayOfSize'; | ||
import toBeBeforeMatcher from './toBeBefore'; | ||
import toBeBooleanMatcher from './toBeBoolean'; | ||
import toBeDateMatcher from './toBeDate'; | ||
import toBeDateStringMatcher from './toBeDateString'; | ||
import toBeEmptyMatcher from './toBeEmpty'; | ||
import toBeEmptyObjectMatcher from './toBeEmptyObject'; | ||
import toBeEvenMatcher from './toBeEven'; | ||
import toBeExtensibleMatcher from './toBeExtensible'; | ||
import toBeFalseMatcher from './toBeFalse'; | ||
import toBeFiniteMatcher from './toBeFinite'; | ||
import toBeFrozenMatcher from './toBeFrozen'; | ||
import toBeFunctionMatcher from './toBeFunction'; | ||
import toBeHexadecimalMatcher from './toBeHexadecimal'; | ||
import toBeIntegerMatcher from './toBeInteger'; | ||
import toBeNaNMatcher from './toBeNaN'; | ||
import toBeNegativeMatcher from './toBeNegative'; | ||
import toBeNilMatcher from './toBeNil'; | ||
import toBeNumberMatcher from './toBeNumber'; | ||
import toBeObjectMatcher from './toBeObject'; | ||
import toBeOddMatcher from './toBeOdd'; | ||
import toBeOneOfMatcher from './toBeOneOf'; | ||
import toBePositiveMatcher from './toBePositive'; | ||
import toBeSealedMatcher from './toBeSealed'; | ||
import toBeStringMatcher from './toBeString'; | ||
import toBeSymbolMatcher from './toBeSymbol'; | ||
import toBeTrueMatcher from './toBeTrue'; | ||
import toBeValidDateMatcher from './toBeValidDate'; | ||
import toBeWithinMatcher from './toBeWithin'; | ||
import toContainAllEntriesMatcher from './toContainAllEntries'; | ||
import toContainAllKeysMatcher from './toContainAllKeys'; | ||
import toContainAllValuesMatcher from './toContainAllValues'; | ||
import toContainAnyEntriesMatcher from './toContainAnyEntries'; | ||
import toContainAnyKeysMatcher from './toContainAnyKeys'; | ||
import toContainAnyValuesMatcher from './toContainAnyValues'; | ||
import toContainEntriesMatcher from './toContainEntries'; | ||
import toContainEntryMatcher from './toContainEntry'; | ||
import toContainKeyMatcher from './toContainKey'; | ||
import toContainKeysMatcher from './toContainKeys'; | ||
import toContainValueMatcher from './toContainValue'; | ||
import toContainValuesMatcher from './toContainValues'; | ||
import toEndWithMatcher from './toEndWith'; | ||
import toEqualCaseInsensitiveMatcher from './toEqualCaseInsensitive'; | ||
import toHaveBeenCalledAfterMatcher from './toHaveBeenCalledAfter'; | ||
import toHaveBeenCalledBeforeMatcher from './toHaveBeenCalledBefore'; | ||
import toHaveBeenCalledOnceMatcher from './toHaveBeenCalledOnce'; | ||
import toIncludeMatcher from './toInclude'; | ||
import toIncludeAllMembersMatcher from './toIncludeAllMembers'; | ||
import toIncludeAllPartialMembersMatcher from './toIncludeAllPartialMembers'; | ||
import toIncludeAnyMembersMatcher from './toIncludeAnyMembers'; | ||
import toIncludeMultipleMatcher from './toIncludeMultiple'; | ||
import toIncludeRepeatedMatcher from './toIncludeRepeated'; | ||
import toIncludeSameMembersMatcher from './toIncludeSameMembers'; | ||
import toRejectMatcher from './toReject'; | ||
import toResolveMatcher from './toResolve'; | ||
import toSatisfyMatcher from './toSatisfy'; | ||
import toSatisfyAllMatcher from './toSatisfyAll'; | ||
import toSatisfyAnyMatcher from './toSatisfyAny'; | ||
import toStartWithMatcher from './toStartWith'; | ||
import toThrowWithMessageMatcher from './toThrowWithMessage'; | ||
|
||
// this is absolutely horrible, but all matchers are default exports of an object with the name of the matcher | ||
|
||
export const fail = failMatcher.fail; | ||
export const pass = passMatcher.pass; | ||
export const toBeAfter = toBeAfterMatcher.toBeAfter; | ||
export const toBeArray = toBeArrayMatcher.toBeArray; | ||
export const toBeArrayOfSize = toBeArrayOfSizeMatcher.toBeArrayOfSize; | ||
export const toBeBefore = toBeBeforeMatcher.toBeBefore; | ||
export const toBeBoolean = toBeBooleanMatcher.toBeBoolean; | ||
export const toBeDate = toBeDateMatcher.toBeDate; | ||
export const toBeDateString = toBeDateStringMatcher.toBeDateString; | ||
export const toBeEmpty = toBeEmptyMatcher.toBeEmpty; | ||
export const toBeEmptyObject = toBeEmptyObjectMatcher.toBeEmptyObject; | ||
export const toBeEven = toBeEvenMatcher.toBeEven; | ||
export const toBeExtensible = toBeExtensibleMatcher.toBeExtensible; | ||
export const toBeFalse = toBeFalseMatcher.toBeFalse; | ||
export const toBeFinite = toBeFiniteMatcher.toBeFinite; | ||
export const toBeFrozen = toBeFrozenMatcher.toBeFrozen; | ||
export const toBeFunction = toBeFunctionMatcher.toBeFunction; | ||
export const toBeHexadecimal = toBeHexadecimalMatcher.toBeHexadecimal; | ||
export const toBeInteger = toBeIntegerMatcher.toBeInteger; | ||
export const toBeNaN = toBeNaNMatcher.toBeNaN; | ||
export const toBeNegative = toBeNegativeMatcher.toBeNegative; | ||
export const toBeNil = toBeNilMatcher.toBeNil; | ||
export const toBeNumber = toBeNumberMatcher.toBeNumber; | ||
export const toBeObject = toBeObjectMatcher.toBeObject; | ||
export const toBeOdd = toBeOddMatcher.toBeOdd; | ||
export const toBeOneOf = toBeOneOfMatcher.toBeOneOf; | ||
export const toBePositive = toBePositiveMatcher.toBePositive; | ||
export const toBeSealed = toBeSealedMatcher.toBeSealed; | ||
export const toBeString = toBeStringMatcher.toBeString; | ||
export const toBeSymbol = toBeSymbolMatcher.toBeSymbol; | ||
export const toBeTrue = toBeTrueMatcher.toBeTrue; | ||
export const toBeValidDate = toBeValidDateMatcher.toBeValidDate; | ||
export const toBeWithin = toBeWithinMatcher.toBeWithin; | ||
export const toContainAllEntries = toContainAllEntriesMatcher.toContainAllEntries; | ||
export const toContainAllKeys = toContainAllKeysMatcher.toContainAllKeys; | ||
export const toContainAllValues = toContainAllValuesMatcher.toContainAllValues; | ||
export const toContainAnyEntries = toContainAnyEntriesMatcher.toContainAnyEntries; | ||
export const toContainAnyKeys = toContainAnyKeysMatcher.toContainAnyKeys; | ||
export const toContainAnyValues = toContainAnyValuesMatcher.toContainAnyValues; | ||
export const toContainEntries = toContainEntriesMatcher.toContainEntries; | ||
export const toContainEntry = toContainEntryMatcher.toContainEntry; | ||
export const toContainKey = toContainKeyMatcher.toContainKey; | ||
export const toContainKeys = toContainKeysMatcher.toContainKeys; | ||
export const toContainValue = toContainValueMatcher.toContainValue; | ||
export const toContainValues = toContainValuesMatcher.toContainValues; | ||
export const toEndWith = toEndWithMatcher.toEndWith; | ||
export const toEqualCaseInsensitive = toEqualCaseInsensitiveMatcher.toEqualCaseInsensitive; | ||
export const toHaveBeenCalledAfter = toHaveBeenCalledAfterMatcher.toHaveBeenCalledAfter; | ||
export const toHaveBeenCalledBefore = toHaveBeenCalledBeforeMatcher.toHaveBeenCalledBefore; | ||
export const toHaveBeenCalledOnce = toHaveBeenCalledOnceMatcher.toHaveBeenCalledOnce; | ||
export const toInclude = toIncludeMatcher.toInclude; | ||
export const toIncludeAllMembers = toIncludeAllMembersMatcher.toIncludeAllMembers; | ||
export const toIncludeAllPartialMembers = toIncludeAllPartialMembersMatcher.toIncludeAllPartialMembers; | ||
export const toIncludeAnyMembers = toIncludeAnyMembersMatcher.toIncludeAnyMembers; | ||
export const toIncludeMultiple = toIncludeMultipleMatcher.toIncludeMultiple; | ||
export const toIncludeRepeated = toIncludeRepeatedMatcher.toIncludeRepeated; | ||
export const toIncludeSameMembers = toIncludeSameMembersMatcher.toIncludeSameMembers; | ||
export const toReject = toRejectMatcher.toReject; | ||
export const toResolve = toResolveMatcher.toResolve; | ||
export const toSatisfy = toSatisfyMatcher.toSatisfy; | ||
export const toSatisfyAll = toSatisfyAllMatcher.toSatisfyAll; | ||
export const toSatisfyAny = toSatisfyAnyMatcher.toSatisfyAny; | ||
export const toStartWith = toStartWithMatcher.toStartWith; | ||
export const toThrowWithMessage = toThrowWithMessageMatcher.toThrowWithMessage; | ||
export { fail } from './fail'; | ||
export { pass } from './pass'; | ||
export { toBeAfter } from './toBeAfter'; | ||
export { toBeArray } from './toBeArray'; | ||
export { toBeArrayOfSize } from './toBeArrayOfSize'; | ||
export { toBeBefore } from './toBeBefore'; | ||
export { toBeBoolean } from './toBeBoolean'; | ||
export { toBeDate } from './toBeDate'; | ||
export { toBeDateString } from './toBeDateString'; | ||
export { toBeEmpty } from './toBeEmpty'; | ||
export { toBeEmptyObject } from './toBeEmptyObject'; | ||
export { toBeEven } from './toBeEven'; | ||
export { toBeExtensible } from './toBeExtensible'; | ||
export { toBeFalse } from './toBeFalse'; | ||
export { toBeFinite } from './toBeFinite'; | ||
export { toBeFrozen } from './toBeFrozen'; | ||
export { toBeFunction } from './toBeFunction'; | ||
export { toBeHexadecimal } from './toBeHexadecimal'; | ||
export { toBeInteger } from './toBeInteger'; | ||
export { toBeNaN } from './toBeNaN'; | ||
export { toBeNegative } from './toBeNegative'; | ||
export { toBeNil } from './toBeNil'; | ||
export { toBeNumber } from './toBeNumber'; | ||
export { toBeObject } from './toBeObject'; | ||
export { toBeOdd } from './toBeOdd'; | ||
export { toBeOneOf } from './toBeOneOf'; | ||
export { toBePositive } from './toBePositive'; | ||
export { toBeSealed } from './toBeSealed'; | ||
export { toBeString } from './toBeString'; | ||
export { toBeSymbol } from './toBeSymbol'; | ||
export { toBeTrue } from './toBeTrue'; | ||
export { toBeValidDate } from './toBeValidDate'; | ||
export { toBeWithin } from './toBeWithin'; | ||
export { toContainAllEntries } from './toContainAllEntries'; | ||
export { toContainAllKeys } from './toContainAllKeys'; | ||
export { toContainAllValues } from './toContainAllValues'; | ||
export { toContainAnyEntries } from './toContainAnyEntries'; | ||
export { toContainAnyKeys } from './toContainAnyKeys'; | ||
export { toContainAnyValues } from './toContainAnyValues'; | ||
export { toContainEntries } from './toContainEntries'; | ||
export { toContainEntry } from './toContainEntry'; | ||
export { toContainKey } from './toContainKey'; | ||
export { toContainKeys } from './toContainKeys'; | ||
export { toContainValue } from './toContainValue'; | ||
export { toContainValues } from './toContainValues'; | ||
export { toEndWith } from './toEndWith'; | ||
export { toEqualCaseInsensitive } from './toEqualCaseInsensitive'; | ||
export { toHaveBeenCalledAfter } from './toHaveBeenCalledAfter'; | ||
export { toHaveBeenCalledBefore } from './toHaveBeenCalledBefore'; | ||
export { toHaveBeenCalledOnce } from './toHaveBeenCalledOnce'; | ||
export { toInclude } from './toInclude'; | ||
export { toIncludeAllMembers } from './toIncludeAllMembers'; | ||
export { toIncludeAllPartialMembers } from './toIncludeAllPartialMembers'; | ||
export { toIncludeAnyMembers } from './toIncludeAnyMembers'; | ||
export { toIncludeMultiple } from './toIncludeMultiple'; | ||
export { toIncludeRepeated } from './toIncludeRepeated'; | ||
export { toIncludeSameMembers } from './toIncludeSameMembers'; | ||
export { toReject } from './toReject'; | ||
export { toResolve } from './toResolve'; | ||
export { toSatisfy } from './toSatisfy'; | ||
export { toSatisfyAll } from './toSatisfyAll'; | ||
export { toSatisfyAny } from './toSatisfyAny'; | ||
export { toStartWith } from './toStartWith'; | ||
export { toThrowWithMessage } from './toThrowWithMessage'; |
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,4 +1,4 @@ | ||
import matcher from './'; | ||
import * as matcher from './'; | ||
|
||
expect.extend(matcher); | ||
|
||
|
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,4 +1,4 @@ | ||
import matcher from './'; | ||
import * as matcher from './'; | ||
|
||
expect.extend(matcher); | ||
|
||
|
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,4 +1,4 @@ | ||
import matcher from './'; | ||
import * as matcher from './'; | ||
|
||
expect.extend(matcher); | ||
|
||
|
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,4 +1,4 @@ | ||
import matcher from './'; | ||
import * as matcher from './'; | ||
|
||
expect.extend(matcher); | ||
|
||
|
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,4 +1,4 @@ | ||
import matcher from './'; | ||
import * as matcher from './'; | ||
|
||
expect.extend(matcher); | ||
|
||
|
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,4 +1,4 @@ | ||
import matcher from './'; | ||
import * as matcher from './'; | ||
|
||
expect.extend(matcher); | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly to give a squiggle for people rebasing old PRs (in addition to failing tests) - I expect all new to copy the approach of existent ones and not notice this rule