-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
build(jest): Use jest-circus
as test runner
#17681
Closed
billyvg
wants to merge
5
commits into
getsentry:master
from
billyvg:build/jest/use-jest-circus-test-runner
Closed
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
22188ab
build(jest): Use `jest-circus` as test runner
billyvg fe14dda
remove custom env
billyvg cc860da
ignore dist directory as module directory for jest
billyvg 6178233
:( update max-old-space-size to 6gb
billyvg 5e45fee
try resetModules
billyvg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ env: | |
- DJANGO_VERSION=">=1.11,<1.12" | ||
# node's version is pinned by .nvmrc and is autodetected by `nvm install`. | ||
- NODE_DIR="${HOME}/.nvm/versions/node/v$(< .nvmrc)" | ||
- NODE_OPTIONS=--max-old-space-size=4096 | ||
- NODE_OPTIONS=--max-old-space-size=6144 | ||
- PYTEST_SENTRY_DSN=https://[email protected]/2423079 | ||
- SENTRY_KAFKA_HOSTS=localhost:9092 | ||
- SENTRY_ZOOKEEPER_HOSTS=localhost:2181 | ||
|
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,5 +1,4 @@ | ||
import $ from 'jquery'; | ||
import * as Sentry from '@sentry/browser'; | ||
|
||
import {Client, Request, paramsToQueryArgs} from 'app/api'; | ||
import GroupActions from 'app/actions/groupActions'; | ||
|
@@ -260,24 +259,4 @@ describe('api', function() { | |
); | ||
}); | ||
}); | ||
|
||
describe('Sentry reporting', function() { | ||
beforeEach(function() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Empty beforeEach that does nothing. |
||
jest.spyOn($, 'ajax'); | ||
|
||
$.ajax.mockReset(); | ||
Sentry.captureException.mockClear(); | ||
|
||
$.ajax.mockImplementation(async ({error}) => { | ||
await tick(); | ||
error({ | ||
status: 500, | ||
statusText: 'Internal server error', | ||
responseJSON: {detail: 'Item was not found'}, | ||
}); | ||
|
||
return {}; | ||
}); | ||
}); | ||
}); | ||
}); |
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 |
---|---|---|
|
@@ -108,26 +108,26 @@ exports[`Version renders 1`] = ` | |
isHoverable={true} | ||
position="top" | ||
title={ | ||
<ForwardRef(render) | ||
<TooltipContent | ||
onClick={[Function]} | ||
> | ||
<ForwardRef(render)> | ||
<TooltipVersionWrapper> | ||
[email protected]+20200101 | ||
</ForwardRef(render)> | ||
</TooltipVersionWrapper> | ||
<Clipboard | ||
errorMessage="Error copying to clipboard" | ||
hideMessages={false} | ||
successMessage="Copied to clipboard" | ||
value="[email protected]+20200101" | ||
> | ||
<ForwardRef(render)> | ||
<TooltipClipboardIconWrapper> | ||
<ForwardRef(IconCopy) | ||
color="white" | ||
size="xs" | ||
/> | ||
</ForwardRef(render)> | ||
</TooltipClipboardIconWrapper> | ||
</Clipboard> | ||
</ForwardRef(render)> | ||
</TooltipContent> | ||
} | ||
> | ||
<Link | ||
|
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
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.
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.
circus seems to require for memory :(
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.
See jestjs/jest#8816