Skip to content
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

[11/n] [RFC] add jest tests #26249

Merged
merged 4 commits into from
Dec 9, 2024
Merged

Conversation

dliu27
Copy link
Contributor

@dliu27 dliu27 commented Dec 3, 2024

Summary & Motivation

Linear: https://linear.app/dagster-labs/issue/FE-713/add-jest-tests-for-sensors-and-schedules

Adds jest tests for launch all

How I Tested These Changes

yarn jest, ts, lint

@dliu27 dliu27 requested review from salazarm and hellendag December 3, 2024 16:34
Copy link

github-actions bot commented Dec 3, 2024

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-fpugyfgzc-elementl.vercel.app
https://dliu27-manual-tick-design-tweaks-5.core-storybook.dagster-docs.io

Built with commit 1759d79.
This pull request is being automatically deployed with vercel-action

@dliu27 dliu27 force-pushed the dliu27/manual-tick-design-tweaks-4 branch from 86a2d6a to 95738ed Compare December 3, 2024 19:07
@dliu27 dliu27 force-pushed the dliu27/manual-tick-design-tweaks-5 branch from 0301597 to e131c31 Compare December 3, 2024 19:09
@dliu27 dliu27 force-pushed the dliu27/manual-tick-design-tweaks-4 branch from 95738ed to 3d4c8b3 Compare December 3, 2024 20:12
@dliu27 dliu27 force-pushed the dliu27/manual-tick-design-tweaks-5 branch from e131c31 to a701abc Compare December 3, 2024 20:44
@dliu27 dliu27 force-pushed the dliu27/manual-tick-design-tweaks-4 branch from 3d4c8b3 to c4ced5f Compare December 5, 2024 21:49
@dliu27 dliu27 force-pushed the dliu27/manual-tick-design-tweaks-5 branch from c6e9fef to 24d601b Compare December 5, 2024 21:50
@dliu27 dliu27 force-pushed the dliu27/manual-tick-design-tweaks-4 branch from c4ced5f to 7b8782b Compare December 6, 2024 15:41
@dliu27 dliu27 force-pushed the dliu27/manual-tick-design-tweaks-5 branch from 24d601b to 8f73433 Compare December 6, 2024 15:42
{
runConfigData:
'solids:\n read_file:\n config:\n directory: /Users/marcosalazar/code/dagster/js_modules/dagster-ui/packages/ui-core/src/ticks/tests\n filename: DryRunRequestTable.test.tsx',
selector: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above


it('launches all runs', async () => {
const pushSpy = jest.fn();
const createHrefSpy = jest.fn();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you didn't actually use thsis variable

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had to include this cuz since I'm mocking useHistory
I get the error: TypeError: history.createHref is not a function
without it

@dliu27 dliu27 requested a review from salazarm December 9, 2024 15:56
@dliu27 dliu27 force-pushed the dliu27/manual-tick-design-tweaks-4 branch from 7b8782b to 101573e Compare December 9, 2024 17:45
An error occurred while trying to automatically change base from dliu27/manual-tick-design-tweaks-4 to master December 9, 2024 17:46
@dliu27 dliu27 force-pushed the dliu27/manual-tick-design-tweaks-5 branch from 9c99eb6 to 1759d79 Compare December 9, 2024 18:07
@dliu27 dliu27 changed the base branch from dliu27/manual-tick-design-tweaks-4 to master December 9, 2024 18:12
@dliu27 dliu27 merged commit 2f38871 into master Dec 9, 2024
3 checks passed
@dliu27 dliu27 deleted the dliu27/manual-tick-design-tweaks-5 branch December 9, 2024 19:01
dliu27 added a commit that referenced this pull request Dec 9, 2024
## Summary & Motivation
Linear:
https://linear.app/dagster-labs/issue/FE-713/add-jest-tests-for-sensors-and-schedules

Adds jest tests for launch all

## How I Tested These Changes
yarn jest, ts, lint
dliu27 added a commit to dliu27/dagster-fork that referenced this pull request Dec 9, 2024
## Summary & Motivation
Linear:
https://linear.app/dagster-labs/issue/FE-713/add-jest-tests-for-sensors-and-schedules

Adds jest tests for launch all

## How I Tested These Changes
yarn jest, ts, lint
pskinnerthyme pushed a commit to pskinnerthyme/dagster that referenced this pull request Dec 16, 2024
## Summary & Motivation
Linear:
https://linear.app/dagster-labs/issue/FE-713/add-jest-tests-for-sensors-and-schedules

Adds jest tests for launch all

## How I Tested These Changes
yarn jest, ts, lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants